On Wed, Dec 03, 2003 at 09:58:50PM +0100, Sjaak Nabuurs wrote:
Hello,
Im new to procmail,
i have a little bit question or guide on how to filter messages
like i want only to recieve email came from the ff. domain xxx.com,
yyy.com,
and zzz.net.
Other domain will be rejected automatically.
Thank ro rge folks in subject :
Why implicit lockfile from "/usr/sbin/sendmail
They help me out.
Sjaak
SHELL=/bin/sh
LOGFILE=$MAILDIR/.procmail-log
:0H:
*^From:.*(domain|domain2|domain3)\.com
foldername
:0
| /dev/null
Unless I'm mistaken, this last rule will fail, probably with some
error messages, since /dev/null ought not to be executable. You
probably want the rule without the pipe.
:0
/dev/null
Also, it might conceivably be useful to have a less silent way of
discarding the messages. You may wish to peruse some of the online
documentation (starting with http://www.procmail.org/ of course) to
find out how.
Ciao,
Allister
--
Allister MacLeod <amacleod(_at_)mv3d(_dot_)com> | http://amacleod.is-a-geek.org/
Elen síla lúmenn'omentielvo.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail