procmail
[Top] [All Lists]

Procmail not checking all the rules in .procmailrc

2004-12-10 05:27:48
I am having a mail server, mail.x.com, in my ISP which
will receive mails for any user(_at_)x(_dot_)com and store it in
postmaster(_at_)x(_dot_)com . At my client I use fetchmail to
fetch mails and store it in a single mailbox, named
mailroot. Then I want to use procmail to distribute
mails to local users. 
The config I did here is, created a .procmailrc file
in /home/mailroot/ 
:0
* ^(To|Cc|Bcc):(_dot_)*ban(_dot_)sh(_at_)x(_dot_)com
!ban
:0
* ^(To|Cc|Bcc):(_dot_)*vijay(_dot_)g(_at_)x(_dot_)com
!vijay
:0

If a mail is fetched by fetchmail to mailroot,
procmail forwards the mail to respective user mailbox.
This works, but in one case. If a mail is received
like To:ban(_dot_)sh(_at_)x(_dot_)com and cc:vijay(_dot_)g(_at_)x(_dot_)com, 
the mail is
only delivered to ban mailbox and not to vijay
mailbox. But if i swaped both the entries,
vijay(_dot_)g(_at_)x(_dot_)com first and ban(_dot_)sh(_at_)x(_dot_)com second, 
I am
getting the mail delivered to vijay and not to ban. 

How can I make procmail to look all the rules before
exiting




=====
Regards,
AnandhG


                
__________________________________ 
Do you Yahoo!? 
Send a seasonal email greeting and help others. Do good. 
http://celebrity.mail.yahoo.com

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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