procmail
[Top] [All Lists]

Re: Using List-Id in recipes

2006-01-29 21:02:31

On 29 Jan 2006, at 10:52 , Anne Wilson wrote:

I can't get a recipe for using List-Id to work.  Would some kind soul
indicate how I could use this line from the headers?

List-Id: For testers of Fedora Core development releases
        <fedora-test-list.redhat.com>

# Sean's recipe
LISTNAME
:0
* 9876543210^0 ^(List-Id:.*<|X-Mailing-List:[   ]*)\/[-A-z0-9_+]+
* 9876543210^0 ^(List-Post:[    ]*(<mailto:)?|List-Owner:[      ]* 
(<mailto:)?owner-)\/[-A-Z0-9_+]+
* 9876543210^0 ^(Sender:[       ]*owner-|X-BeenThere:[  ]*|Delivered- 
To:[       ]*mailing list )\/[-A-Za-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` }

:0:
$LISTNAME

that will sort just about any mailing list you are on, or any mailing  
list you join.

(the [  ] contain  space and a tab)

-- 
Secondly, the Earth's a Libra


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>