procmail
[Top] [All Lists]

X-Loop with prarametrized argument?

1997-06-13 03:20:00
Hi everybody,

I have procmail running two hosts on different domains.

One of my recipes is:

:0:
* $^From "$BLACKLIST"
* !^X-Loop: sancese(_at_)domainA
        | (formail -rt \
                -A "Precedence: junk" \
                -A "X-Loop: sancese(_at_)domainA" ; \
                cat $PMDIR/blacklist.reply; \
        ) | $SENDMAIL -t

(the $BLACKLIST is a very small list of known people, so I don't spam anyone).

Problem is that on domain domainB the recipe is slightly different for the
X-Loop stuff, indicating domainB.

How can I parametrize the recipe so that I can use the same rc file on machines
on different domains?

TIA,

Silvio

<Prev in Thread] Current Thread [Next in Thread>