procmail
[Top] [All Lists]

Re: X-Loop with prarametrized argument?

1997-06-13 04:09:00
On Fri, 13 Jun 1997 11:42:18 +0000,
"Silvio Sancese" <sancese(_at_)mmedia(_dot_)df(_dot_)unibo(_dot_)it> wrote:
: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

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

In principle, it doesn't really matter what you put on the X-Loop
line, as long as you can be reasonably sure it's unique. But if this
is a real concern, check if your host already has set $HOST or
$HOSTNAME or one of the other customary hostname variables, and else
set it yourself with something like

    DOMAIN=`domainname`

Hope this helps,

/* era */

-- 
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r.  <http://www.iki.fi/~era/>
 * Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>

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