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 "[email protected]" 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: [email protected] 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:[email protected]?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/coreutils> List-Post: <mailto:[email protected]> List-Help: <mailto:[email protected]?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/coreutils>, <mailto:[email protected]?subject=subscribe> Sender: [email protected] Errors-To: [email protected] 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
