MESSAGE
DATE | 2015-02-16 |
FROM | Rick Moen
|
SUBJECT | Subject: [NYLXS - HANGOUT] Matching this mailing list for procmail rules
|
From owner-hangout-outgoing-at-mrbrklyn.com Mon Feb 16 23:29:35 2015 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix) id 5597E161169; Mon, 16 Feb 2015 23:29:35 -0500 (EST) Delivered-To: hangout-outgoing-at-mrbrklyn.com Received: by mrbrklyn.com (Postfix, from userid 28) id 4657E16116C; Mon, 16 Feb 2015 23:29:35 -0500 (EST) Delivered-To: hangout-at-nylxs.com Received: from linuxmafia.com (linuxmafia.COM [198.144.195.186]) by mrbrklyn.com (Postfix) with ESMTP id 886DE161169 for ; Mon, 16 Feb 2015 23:29:33 -0500 (EST) Received: from rick by linuxmafia.com with local (Exim 4.72) (envelope-from ) id 1YNZmv-0003yu-QZ for hangout-at-nylxs.com; Mon, 16 Feb 2015 20:29:33 -0800 Date: Mon, 16 Feb 2015 20:29:33 -0800 From: Rick Moen To: Hangout Subject: [NYLXS - HANGOUT] Matching this mailing list for procmail rules Message-ID: <20150217042933.GH2231-at-linuxmafia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Organization: If you lived here, you'd be $HOME already. X-Mas: Bah humbug. User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: rick-at-linuxmafia.com X-SA-Exim-Scanned: No (on linuxmafia.com); SAEximRunCond expanded to false Sender: owner-hangout-at-mrbrklyn.com Precedence: bulk Reply-To: hangout-at-nylxs.com
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
|
|