[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Filing Emails From Mailing Lists (was: [coreutils] Re: [PATCH] uniq: don
From: |
Bob Proulx |
Subject: |
Filing Emails From Mailing Lists (was: [coreutils] Re: [PATCH] uniq: don't continue field processing after end of line) |
Date: |
Tue, 18 Jan 2011 16:45:10 -0700 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
crocket wrote:
> The below message didn't go to my "coreutils mailing list" folder in
> my mailbox.
> It was because the mssage didn't have "address@hidden" as one of
> recipients.
In general the mailing list address should always be in the recipient
list in either the To: or Cc: fields. It isn't strictly required.
But it makes it harder for people to reply when that isn't true.
Filing based upon the recipient address is fraught with traps and
pitfalls. Better to use the mailing list headers intended for that
purpose. Here are the mailing list headers from that message.
X-BeenThere: address@hidden
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: GNU coreutils General Discussion <coreutils.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/coreutils>,
<mailto:address@hidden?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/coreutils>
List-Post: <mailto:address@hidden>
List-Help: <mailto:address@hidden?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/coreutils>,
<mailto:address@hidden?subject=subscribe>
Sender: coreutils-bounces+bob=address@hidden
Errors-To: coreutils-bounces+bob=address@hidden
The best header to use is List-Id. That is a required header for all
mailing list and is specified by RFC 2919.
http://www.apps.ietf.org/rfc/rfc2919.html
> Is there a way to put such messages in the correct folder?
What tool are you using to put things into the correct folders?
I use procmail and the following recipe will automatically put all
email into folders by mailing list automatically.
:0
* ^List-Id: .*<[-a-zA-Z0-9]+\.gnu\.org>
* ^List-Id: .*<\/[-a-zA-Z0-9]+
$MAILDIR/Lists/gnu/$MATCH/
:0
* ^List-Id: .*<[-a-zA-Z0-9]+\.nongnu\.org>
* ^List-Id: .*<\/[-a-zA-Z0-9]+
$MAILDIR/Lists/nongnu/$MATCH/
Bob