procmail
[Top] [All Lists]

Re: What's wrong of my script?

2003-07-01 23:42:11
On Wed, Jul 02, 2003 at 02:02:31PM +0800, Chris Wong wrote:
PATH=/bin:/usr/bin:/usr/local/bin 
SHELL=/bin/sh 
MAILLIST=user1(_at_)mydomain(_dot_)com|user2(_at_)mydomain(_dot_)com

:0 fhw: 
* !From.${MAILLIST} 

Well that would be fine if you're looking for "From 
user1(_at_)mydomain(_dot_)com" or
"From:user1(_at_)mydomain(_dot_)com", but if you're looking for 
"From: user1(_at_)mydomain(_dot_)com", or "From: User Name 
<user1(_at_)mydomain(_dot_)com>", it aint
gonna work.

        * !From.*${MAILLIST}

And for efficiency

        MAILLIST="(user1|user2)@mydomain.com"


-- 
Andrew Edelstein        -       http://andrew.pure-chaos.com/resume.txt

Please do not reply directly to me, or Cc: me on a reply to a list message.
I'll get my copy from the list.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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