I'd like to optimize some of my recipes so that it minimizes
processing, and also minimizes clutter in the rc file.
I've got lines like this:
:0:
* ^Sender:(_dot_)*owner-ssh(_at_)clinet(_dot_)fi
SSH
:0:
* ^TOsamba-ntdom
SAMBA-NTDOM
:0:
* ^TOwine-devel
WINE-DEVEL
Those are ok, but I've got lines also like this:
:0:
* ^X-Mailing-List:.*zoot-list
ZOOT-LIST
:0:
* ^X-Mailing-List:.*redhat-list
REDHAT-LIST
:0:
* ^X-Mailing-List:.*apollo-list
APOLLO-LIST
:0:
* ^X-Mailing-List:.*hedwig-list
HEDWIG-LIST
:0:
* ^X-Mailing-List:.*cartman-list
CARTMAN-LIST
:0:
* ^X-Mailing-List:.*redhat-announce-list
REDHAT-ANN
Is there a better way of organizing this so that one recipe can
catch all lists?
I was thinking something that could detect the list name from the
X-Mailing-List header and automatically uppercase it and store in
that folder.
Also, I've got another series of recipe's I'd like to shorten
which are like the following:
:0:
* From:(_dot_)*myfriend(_at_)somewhere
FRIENDS
:0:
* From:(_dot_)*friend2(_at_)elsewhere
FRIENDS
:0:
* From:(_dot_)*morefriends(_at_)somewhereelse
FRIENDS
How can I combine this into one recipe? Right now it is about 40
recipes and I'd rather see something like:
:0:
* From:(_dot_)*myfriend(_at_)somewhere
|| * From:(_dot_)*morefriends(_at_)somewhereelse
|| * From:(_dot_)*friend2(_at_)elsewhere
FRIENDS
Where "||" signifies one OR two OR three.. I'm not familiar
enough with the cryptic syntax to make this work without losing
mail.
Thanks in advance.
TTYL
--
Mike A. Harris Linux advocate
Computer Consultant GNU advocate
Capslock Consulting Open Source advocate
... Our continuing mission: To seek out knowledge of C, to explore
strange UNIX commands, and to boldly code where no one has man page 4.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail