procmail
[Top] [All Lists]

help with procmail rules

2008-07-29 08:03:41
I have a user, rmiller(_at_)mdah(_dot_)state(_dot_)ms(_dot_)us who wants all of his To: and Cc: email to go to his millerono(_at_)gmail(_dot_)com as well as keeping a copy of the email on our mdah.state.ms.us mail server in his inbox. However, when he sends mail from millerono(_at_)gmail(_dot_)com he will Bcc: the email to rmiller(_at_)mdah(_dot_)state(_dot_)ms(_dot_)us so that we have a a copy of his email. Are the following procmail rules below correct to accomplish this?

:0:
* $ ^Bcc:(_dot_)*rmiller(_at_)mdah(_dot_)state(_dot_)ms(_dot_)us
${DEFAULT}

:0
* ^Cc(_dot_)*rmiller(_at_)mdah(_dot_)state(_dot_)ms(_dot_)us
{
       :0c
       ! millerono(_at_)gmail(_dot_)com

       :0
       ${DEFAULT}
}

:0
* ^To(_dot_)*rmiller(_at_)mdah(_dot_)state(_dot_)ms(_dot_)us
{
       :0c
       ! millerono(_at_)gmail(_dot_)com

       :0
       ${DEFAULT}
}


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