procmail
[Top] [All Lists]

Re: Variable as action line?

1997-10-15 23:59:48
On Wed, 15 Oct 1997 22:21:02 -0400 (EDT), Gregory Sutter
<gsutter(_at_)ugems(_dot_)psu(_dot_)edu> wrote:
DUMPMAIL=`formail -i "X-Fkey: junk" -i "X-Spammer: $SPAMMER" >> junkmail`
:0 :
* SPAMMER ?? .
$DUMPMAIL

You are redirecting the stuff that happens in the double quotes, so
DUMPMAIL will contain the empty string. Perhaps this is what you mean:

    # Perhaps you should lock junkmail here, too?

    DUMPMAIL=`formail -i "X-Fkey: junk" -i "X-Spammer: $SPAMMER" |\
        tee -a junkmail`
    :0:
    * SPAMMER ?? .
    $DUMPMAIL

Hope this helps,

/* era */

-- 
 Paparazzi of the Net: No matter what you do to protect your privacy,
  they'll hunt you down and spam you. <http://www.iki.fi/~era/spam/>

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