procmail
[Top] [All Lists]

match the word in username and domain

1997-03-20 01:18:27
Thanks to all who helped me to set up and understand an auto reply.  I finally
made it working.

Now I am trying to write a recipe for refusing emails from a user "Papan John
Kumar" with email address "john(_at_)mail(_dot_)abcd(_dot_)edu(_dot_)au"

Here is my rc.refused file

:0
* !^From +YOUR_USERNAME
* !^Subject:.*Re:
* !^FROM_DAEMON
* ^From(_dot_)*papan(_dot_)*john(_at_)(_dot_)*abcd\(_dot_)au
| (formail -r ; cat $HOME/refused.txt) | $SENDMAIL -oi -t

I have already included INCLUDERC=$PMDIR/rc.refused in my .procmailrc file.  Is
this recipe correct?

Thanks in advance.

Rajesh



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