List header?

Tony Green tgreen at bandcamp.tv
Sun Sep 19 10:32:58 UTC 2004


On 19/09/2004, at 8:24 PM, Dusausoy Bruno wrote:
> I sort it with procmail.
> Here's my recipe :
>
> :0
> * ^X-BeenThere: ubuntu-users at lists\.ubuntu\.com
> .Linux.Ubuntu.Users/
>
> Works like a charm.
>

Altering procmail for each list is SOOOO 1990 :-)

# MOST LISTS - Automagically handle lists
:0
* ^((List-Id|X-(Mailing-)?List):(.*[<]\/[^>]*))
{
     LISTID=$MATCH

     :0:
     * LISTID ?? ^\/[^@\.]*
     .Lists.$MATCH/
}

Puts any mailman list mail into an IMAP folder /Lists/LISTNAME 
(/Lists/ubuntu-users in this case).

Works great with IMAP/Webmail etc and you could even use procmail to 
re-write the subject on matched e-mails if you so desire.

and if you're a Majordomo user :

# MAJORDOMO - Automagically handle Majordomo lists
:0
* ^Sender: owner-[^@]+@[^@\+]+
* ^Sender: owner-\/[^@\+]+
{
     :0
     .Lists.$MATCH/
}

And now back to your regular programming.......
-- 
Tony Green <tgreen at bandcamp.tv>





More information about the ubuntu-users mailing list