Menu

#467 allow btnet_service mail from filter using several strings

open
None
6
2010-12-24
2009-10-08
Anonymous
No

Similar to protected string[] FromCannotContainStrings; I've implemmented protected string[] FromMustContainStrings as you can see below

line 45: added --> protected string[] FromMustContainStrings;
line 216: added --> FromMustContainStrings = rePipes.Split(FromMustContain);
line 653-657: changed to -->
bool bContinue = false;
if (FromMustContain != "")
{
for (int k = 0; k < FromMustContainStrings.Length; k++)
{
if (FromMustContainStrings[k] != "")
{
if (from.IndexOf(FromMustContainStrings[k]) >= 0)
{
bContinue = true; // that is, skip to next message
break; // done checking, skip this message
}
}
}
}

if (!bContinue)
{
write_line("skipping because from does not contain any part of " + FromMustContain);
continue;
}

Discussion

  • Corey Trager

    Corey Trager - 2009-11-05
    • assigned_to: nobody --> ctrager
     
  • Corey Trager

    Corey Trager - 2009-11-05
    • priority: 5 --> 2
     
  • Corey Trager

    Corey Trager - 2010-12-24
    • priority: 2 --> 6
     

Log in to post a comment.