On Wednesday, Jun 4, 2003, at 14:53 Canada/Mountain, Bryan Koschmann -
GKT wrote:
So is List-ID the best way to go for mailing lists? I would in fact be
separating them into folders.
Depends on the list. Not all lists insert a list-id header.
Sean posted this in the last week or so:
# Sean B Straw, PSE-L(_at_)mail(_dot_)professional(_dot_)org
:0
* 9876543210^0 ^(Sender:[ ]*owner-|X-BeenThere:[
]*|Delivered-To:[ ]*mailing list )\/[-A-Za-z0-9_+]+
* 9876543210^0 ^(List-Post:[ ]*(<mailto:)?|List-Owner:[
]*(<mailto:)?owner-)\/[-A-Z0-9_+]+
* 9876543210^0 ^Sender:.* List"? <(mailto:)?\/[-A-Z0-9_+]+
{
LISTNAME=$MATCH
}
:0E
* ^Sender:[ ]*\/[-A-Z0-9_+]+-owner
{
LISTNAME=`echo $MATCH | sed -e s/-owner//i`
}
which extracts the list name form a list of potential places. It
doesn't, interestingly, use List-Id, which is probably because the
list-id contains so much other stuff. It would be hard to write a
generic recipe to extract the list name from it, I would think)
if you follow up that recipe with
:0
* ! LISTNAME ?? ^^^^
$MLDIR/$LISTNAME
your list mail will get sorted.
--
Because you can't cotton to evil. No Sir. You have to smack evil on
the nose with the rolled-up newspaper of justice and say,'Bad evil. bad
BAD evil'"
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail