At 20:45 2008-06-17 +1000, Nick Croft wrote:
[snip - headers and stuff which make for good examples]
I assumed that a simple recipe would do the trick, like:
:0
* ^From_www-data(_at_)jesuschristians(_dot_)net
* ^From:(_dot_)*n(_at_)linearg(_dot_)com
* ^To:.*admin\ <n(_at_)linearg(_dot_)com>
* ^Subject:.*Activate\ user\ account
admin
If you're filing to an mbox, you should add the locking flag to the flags
line (a trailing colon). That first condition will NOT match - within the
procmail list we sometimes refer to the from_ header, but that's an
informal reference, not a literal regexp - it's the header that has a
space, not a colon. No need to try to match it anyway - the other headers
will more than suffice. However, in the following recipe, the ^TO_ *IS* a
procmail regexp macro - see 'man procmailrc'.
Try this:
:0:
* ^TO_n(_at_)linearg(_dot_)com
* ^Subject:[ ]*Activate user account
* ^X-phpBB-Origin:[ ]*phpbb://jcs\.xjcs\.org/phpBB3
xjcs-admin
Brackets enclose a space and tab. This recipe should isolate messages from
that particular board.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail