procmail
[Top] [All Lists]

Need help with recipe

2001-02-14 10:06:24
Hi,

I can't figure out how to accomplish something like this,
and I was hoping someone can help.

I need to sort incoming mail into directories,
so, that if a single piece of mail was sent to UserA & UserB, then 
a copy would be placed in UserA's directory and UserB's directory.
If the mail was sent to someone other than UserA or UserB,
then the mail would be put in the NoUser directory.

Something like this:

If mailed to UserA then copy to UserA directory;
If mailed to UserB then copy to UserB directory;
If not mailed to any of the above, copy to NoUser directory;

This works, except I can't figure out how to implement
the last part:

:0Hc:
* ^TO_UserA@
UserA

:0Hc:
* ^TO_UserB@
UserB

:0H:
* if none of the above
NoUser


Thanks!

Barton
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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