Alas! Ricardo SIGNES spake thus:
> I do something like this, and use sed.
> 
> Try something like this (untested): 
> 
>       MLIST=`echo $MATCH | sed -e 's/\(foo\|bar\|baz)@qux\.com*/\1/i'`
>       ~/mail/$MLIST

This is what I currently have set up, and it catches most lists:

:0:
* ^List-Id:.*<\/[^\.]+
$MAILDIR/$MATCH

:0:
* ^X-List: \/[-a-zA-Z0-9\.]+
$MAILDIR/$MATCH

(for most of the mailing lists I'm on, List-Id is in the form of "Foo
Bar LUG <foobar.server.com>", and X-List is in the form of
"[EMAIL PROTECTED]". So in the case of List-Id, I want to grab everything
after the < and before the ., and with X-List, I want as much as I can
get so long as it's only alphanumeric, periods, or hyphens.

Seems to work pretty well for me. 

-- 
Rob 'Feztaa' Park
[EMAIL PROTECTED]
--
To get back on your feet, miss two car payments.

Attachment: msg27696/pgp00000.pgp
Description: PGP signature

Reply via email to