procmail
[Top] [All Lists]

Re: filtering messages "from" someone

1998-02-12 15:38:22
On Thu, 12 Feb 1998, Felicia Griffin wrote:

here is a sample of what i have in my procmailrc file, is there something
that i am doing wrong here?

:0
* ^From: .* gordy(_at_)(_dot_)*
montage

What your "From" rule is saying is: "move to file montage, anything that
has the line starting "From: ", followed by any characters, which are then
followed by "gordy@" followed by any other characters. 

First off, the trailing .* is superfluous.  Secondly, the space in front
of "gordy@" is going to be difficult to match, since it comes behind the
.* character gobbler.  Lastly, it's not a bad idea to escape the @-sign
with a backslash.

I believe that you'd have more success with:

* ^From:.*gordy\@

Steve

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