procmail
[Top] [All Lists]

Forward mail to another address while retaining in INBOX

2002-04-07 22:50:53
Hi,
Juz joined the mail list.

I’m writing a webmail using PHP 4.1.2. I use Uwash IMAP server. I would like to write a procmail recipe that forwards a mail to another email address in addition to originally intended recipient. Example: Alice sends to Bob. When the email reaches Bob’s host, one mail is stored in Bob’s mailbox (INBOX) and procmail recipe sends the same mail to Charles.

I’ve come up with 2 recipes based on examples provided in FAQs on the Net. Which one is more preferable?

:0                      # That's colon, zero
* ^TO_db(_at_)cik-ah\(_dot_)uniten\(_dot_)edu\(_dot_)my
! db(_at_)ddd(_dot_)edu(_dot_)my anotherguy(_at_)abc(_dot_)com # That's exclamation mark, address to forward to

OR


:0c                     # That's colon, zero, lowercase cee
* ^TO_db
! anotherguy(_at_)abc(_dot_)com # That's exclamation mark, address to forward to




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.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>