Steve Pearl <starbuck(_at_)cybercomm(_dot_)net> says:
Hi! I have started using procmail recently to sort out my mailing lists and I
have been using the simple recipe that was given in the man pages of the form:
:0:
* ^TOprocmail@
In.procmail
Now I receive mail from several mailing lists that are sometimes sent to
multiple lists that I subscribe to. (ie, the Spam & Moderators list, or the
myriad of anime/manga lists) What I would like to do is to have that mail
message appear in all the associated mail folders that it could be filtered
into.
This usually involves making a delivering recipe into a non-delivering
recipe. The basic idea is:
:0 c:
* ^TOprocmail@
In.procmail
:0 c:
* ^TOmoderators@
In.moderators
# ... More mailing lists
:0 :
* ^TOmy_address@
inbox
DELIVERED=yes
This hasn't been tested but it should work mostly like you want.
Procmail will continue to perform recipes as long as they have the "c"
flag in them. When it gets to the end, any mail directed to you will go
into your inbox folder. The "c" flag isn't necessary here because it's
your last recipe. Then, any mail that has yet to be delivered is
automatically swallowed (this is the purpose of the assignment).
This has the side effect that any mailing list you have not catered for
in your procmailrc will fail all recipes and be lost silently. This may
or may not be what you want.
There are probably more elegant solutions.
--
Tim Pickett
tlm(_at_)yoyo(_dot_)cc(_dot_)monash(_dot_)edu(_dot_)au
"You know, he's getting married!"
tbp(_at_)molly(_dot_)cs(_dot_)monash(_dot_)edu(_dot_)au