procmail
[Top] [All Lists]

Re: help with cc email delivery

2002-11-24 05:27:50
Guido R. Rolon A. wrote:
Hi all,
I need a hand, like every body i think.
I use procmail to deliver email to local users.
My .procmailrc is

:0
 * 
(^To:(_dot_)*grolon(_at_)homesoftware(_dot_)com(_dot_)py)|(^CC:(_dot_)*grolon(_at_)homesoftware(_dot_)com(_dot_)py)
 ! grolon

# the mail to root(_at_)mydom(_dot_)com will be forwarded to root ... as well postmaster!
 :0
 * 
(^To:(_dot_)*grolon(_at_)telesurf(_dot_)com(_dot_)py)|(^CC:(_dot_)*grolon(_at_)telesurf(_dot_)com(_dot_)py)
 ! grolon

If somebody sends an email to grolon(_at_)homesoftware(_dot_)com(_dot_)py and a carbon copy to grolon(_at_)telesurf(_dot_)com(_dot_)py, only the first user receives its email.

Why is that?

tia

Check up on ^TO.  It's a macro that simplifies your To/CC expressions.

A rule like:

:0
* [anything]
! address

delivers it and finishes. If you want it to go two places then you need to add "c" to the first one:

:0 c
* [anything]
! address

:0
* [anything else]
! another_address

This will route your mail like this:

     |
     |
   [ RULE #1 MATCHES ]----> mailto: address
     | (this is what the "c" does)
     |
   [ RULE #2 MATCHES ] ----> mailto: another_address


And no more activity. If a rule doesn't match, then the email "falls through" to the bottom. It's just like falling out of a tree. If you don't get caught by any brances, you hit the ground.

--
Everybody needs a little love sometime; stop hacking and fall in love!


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