procmail
[Top] [All Lists]

receipe question for .procmailrc

2000-11-20 13:00:18
Hi,

I have this .procmailrc file. I have RedHat 6.1
and it works fine

=====================================
PATH=$HOME/bin:/usr/bin:/bin:/usr/local/bin:/home/httpd/cgi-bin/bin
MAILDIR=$HOME/mail     # You'd better make sure it exists
#LOGFILE=$MAILDIR/log
DEFAULT=/usr/spool/mail/$LOGNAME
SHELL=/bin/sh

                       # We don't use a global lockfile here now.
                       # Instead we use local lockfiles everywhere.
                       # This allows mail to arrive in all mailboxes
                       # concurrently, or allows you to read one mailbox
                       # while mail arrives in another.


:hb
^From:(_dot_)*user1(_at_)hotmail(_dot_)com
|mailexec
=======================================

So if the server receives an email from user1(_at_)hotmail(_dot_)com it invokes
mailexec, which is a script.

How could I change this .procmailrc so that I want to handle
multiple emails like this

:hb
^From:(_dot_)*user1(_at_)hotmail(_dot_)com
|mailexec

:hb
^From:(_dot_)*user2(_at_)hotmail(_dot_)com
|mailexec

:hb
^From:(_dot_)*user3(_at_)hotmail(_dot_)com
|mailexec

inother words

I want to do this

if it is from user1
{
 set some ENV variables
 invoke mailexec script
}

if it is from user2
{
 set some ENV vairables
 invoke mailexec script
}

Thanks

Anand


_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at http://profiles.msn.com.

_______________________________________________
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>