[H-GEN] procmailrc

Clinton Roy croy at dstc.edu.au
Sat Sep 1 00:13:34 EDT 2001


[ Humbug *General* list - semi-serious discussions about Humbug and  ]
[ Unix-related topics.  Please observe the list's charter.           ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]

Patrick Nichols <pat at humbug.org.au> writes:

> Can anybody provide me with a working setup for the humbug lists as an
> example of how to do this?
When I was using procmail to do this, this is what was used:

# Humbug
:0:
* ^X-Loop: .*@lists\.humbug\.org\.au
* ^X-Loop: \/[^@]*
humbug-$MATCH

Thinking about it now, X-Loop looks like a dodgy header to filter on,
but I don't think we had List-Id when I wrote that (I vaguely remember
begging aj for help with mail, it's hard to remember specifics ;).

The first condition line selects all humbug mail. The second rule is a
bit tricky; the \/ token tells procmail to store everything that
matches after it to be stored in the MATCH variable. The regular
expression simply matches everything up to the @ sign. The action line
stores the mail in humbug-announce, humbug-general, humbug-chat etc.

Comparing it to my Gnus line:
   ("humbug-\\1"       "^X-Loop: \\b\\(\\w+\\)@lists.humbug.org.au")

I'm still not sure which is uglier ;)

hope that helps, all the useful info is in procmailrc(5)
-- 
Clinton Roy

I speak for me and myself, but not my shadow.

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list