MESSAGE
DATE | 2015-02-16 |
FROM | Rick Moen
|
SUBJECT | Subject: [NYLXS - HANGOUT] Matching this mailing list for procmail rules
|
I noticed that postings to this mailing list kept landing in my personal mbox rather than in ~/inboxes/lists, the way mailing lists ought to, on my system. 'WTF?', I thought. 'Why aren't my procmail rules catching the X-BeenThere or X-Loop or X-Mailing-List/Mailing-List headers?'
And then I remembered: Right, Ruben's still using procmail, which completely fails to implement mailing list headers required by RFCs after 2000 because it's been unmaintained proprietary code since about 2000.
I've just appended a new special-case match to catch Hangout, as shown below. (Notice that we have to look for owner-hangout-at-brklyn.com, even though this is the hangout-at-nylxs.com mailing list, because the two domains are still muddled together.)
I hope the recipe is useful to others.
Quoting from .procmailrc:
------
### LIST CATCHALLS
:0 * ^X-BeenThere:* $HOME/inboxes/lists
:0 * ^X-Loop:* $HOME/inboxes/lists
:0 * ^X-Mailing-List:* $HOME/inboxes/lists
:0 * ^Mailing-List:* $HOME/inboxes/lists
### LISTS THAT NEED SPECIAL PATTERNS
:0 * ^Sender: owner-hangout-at-mrbrklyn.com $HOME/inboxes/lists
------
Above is not a particularly good ruleset, just good enough to suffice on mailing lists received here. These are said to be better:
http://www.professional.org/procmail/listname_id.rc
-- Cheers, « Il n'est si homme de bien, qu'il mette à l'examen Rick Moen des loi toutes ses actions et pensées, qui ne soit rick-at-linuxmafia.com pendable dix fois en sa vie. » McQ! (4x80) -- Michel de Montaigne, Essais
|
|