procmail
[Top] [All Lists]

Regular Expression Misunderstanding

1998-11-27 09:11:27
I need another clue.

Now this next one is bugging me, and is probably a misunderstanding of
regular expressions on my part

        :0:
        * (^TO_|From:).*someaddress
        somefolder

This one seems to work properly, catching email to or from
someaddress.  However:

        :0:
        * (^From:|TO_).*someaddress
        somefolder

doesn't catch those emails _to_ someaddress, so I'm thinking that the
first recipe is also flawed in some way that I don't realize.

Sure, I could just use the first recipe, but I want to understand what
my misunderstanding is, as I see the two as being interchangeable.

      Kevin Benko          / alt.atheism#(1332) /
kevin [at] efn [dot] org  /       --><--       /
Homepage at expected URL /        fnord       /

<Prev in Thread] Current Thread [Next in Thread>