procmail
[Top] [All Lists]

Kind of functions in procmail

2001-11-16 07:39:45

 hi I'm looking for a way to factorize some parts of my procmailrc, as
 functions, for ex I've MANY rules like that
 
:0
* $ misc rule 1...
{
        SPAMREASON="misc rule 1 match ${MATCH}"
        LOG="${SPAMKILLERTAG}: ${SPAMREASON}
"
        :0 fwh
        | ${FORMAIL} -i "${XSPAMKILLERHEADER}: ${SPAMREASON}"
        :0
        ${SPAMFOLDER}
}

:0
* $ misc rule 2...
{
        SPAMREASON="misc rule 2 match ${MATCH}"
        LOG="${SPAMKILLERTAG}: ${SPAMREASON}
"
        :0 fwh
        | ${FORMAIL} -i "${XSPAMKILLERHEADER}: ${SPAMREASON}"
        :0
        ${SPAMFOLDER}
}

  thanks in advance for any help

-- 
 /   From the last station before the end of the neT   \
 \ Centre d'Etudes de la Navigation Aerienne,  div SSS /
 / 7, av edouard Belin - 31055 Toulouse CEDEX - France \
 \ Tel:(+33|0)5.62.25.95.22 | Fax:(+33|0)5.62.25.95.99 /
_______________________________________________
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>