procmail
[Top] [All Lists]

Re: Fwd: filtering & forwarding incoming email

2005-05-03 07:21:40
Mr Duck schreef:
 
   :0
   * ^TOuser1(_at_)mydomian\(_dot_)com
   ! user1(_at_)yourdomain\(_dot_)com

This might cause a mail loop, so insert an X-Loop: 
header and check for it. Example:

    PM_TO = 'user1(_at_)mydomian(_dot_)com'

    :0 fhw
    *$ ! ^X-Loop: $\PM_TO
    * ^TO_user1(_at_)mydomian\(_dot_)com
    | formail -i "X-Loop: ${PM_TO}"

    :0A a
    ! user1(_at_)yourdomain\(_dot_)com

-- 
Grtz, Ruud

____________________________________________________________
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