procmail
[Top] [All Lists]

How to?

1997-05-13 17:31:00

I want to be able to send a message to user1 if a message has a
subject with TEST1 in it and the message comes from testuser.

But if the massage has a Subject line with TEST1 in it but does not
come from testuser, I want to send a message to user2.

And if the subject does not have TEST1 in it regardles where it comes
from, I want the message go to the $DEFAULT and to user3.

Is this possible?

something like:

DEFAULT=$HOME/mbox

:0            
* ^Subject:.*TEST1*
{
        * ^From.*testuser*   (I know this is not allowed, that's my problem!)
        :0
        !user1
        :0 E
        !user2
}

And somewhere I have to use !user3 ...

??

Any thoughts?

-Erdem Ozsaruhan
NSF Postmaster

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