Todd Lindstrom wrote,
| * ((^Subject:.*OOP) | (^Subject:.*out.of.plant))
| ... does not catch messages like this:
|
| Subject: Out Of Plant - Friday Oct 9
Of course it doesn't. You have spurious spaces in the regexp (the ones on
either side of the pipe). You're requiring a space after "oop" or one before
^Subject:.*out.of.plant; since the preceding header line will just about
never end in a trailing space, you'll never get a match to " ^". If you
received an "OOP" subject that didn't have a space after "OOP" (because the
subject line usually includes a date or a day of the week) but just ended
there with the P, it wouldn't match either.
| Can someone give me a clue what is happening? I thought that the period
| (.) matches any character - doesnt it match space as well?
It does. But a space also matches a space, and you have a space in your
condition's regexp that does not appear in the actual message.
| (Ive also tried changing it to this:
| * ((^Subject:.*OOP) | (^Subject:.*out of plant))
| (with no period between out of plant) And this does not work either.
You didn't fix the problem. Those extra spaces around the pipe are still
there. Try this:
* ^Subject:.*(oop|out of plant)
Better, so that you don't match on "hoop" or "oops" or "pooped" or "bout of
plantar warts,"
* ^Subject:(.*\<)?(oop|out of plant)\>