procmail
[Top] [All Lists]

Re: filtering messages "from" someone

1998-02-12 14:51:10
Felicia Griffin <fgriffin(_at_)staff(_dot_)uiuc(_dot_)edu> writes:
i tried to set up my .procmailrc so that i can filter messages coming from
a certain person. it doesn't work

does it matter how many entries i have (like i have two that filter
message going to a certain address, and the last four filter messages
coming from certain people)

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

Your problem is probably due to the spaces both before and after the
"gordy@" line; the ".*" at the end is not necessary.  Try this:

:0
* ^From.*gordy@
montage

I suggest you get a copy of the book "Mastering Regular Expressions:
Powerful Techniques for Perl and Other Tools" by Jeffrey E. F. Friedl
(ISBN 1-56592-257-3) from O'Reilly & Associates.  See for more
information:
        http://www.ora.com/catalog/regex/noframes.html

--Bill.

Disclaimer: I have no relationship with O'Reilly or the author except
as a very happy customer....

-- 
William R Ward          Bay View Consulting   http://www.bayview.com/~hermit/
hermit(_at_)bayview(_dot_)com     1803 Mission St. #339        voicemail +1 
408/479-4072
wrw(_at_)bayview(_dot_)com       Santa Cruz CA 95060 USA           pager +1 
408/458-8862
 PGP Key 0x2BD331E5; Public key at http://www.bayview.com/~hermit/pubkey.txt
-----------------------------------------------------------------------------
"The government of the United States of America is not in any sense founded
upon the Christian Religion." - John Adams

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