procmail
[Top] [All Lists]

Re: "a" or "A" flag

1997-06-29 05:52:00
On Sat, 28 Jun 1997 12:48:32 -0700 (MST),
Wotan <wotan(_at_)netcom(_dot_)com> wrote:
:0
* ^Subject:.*(\$\$+|!!+)
{
     :0 c:
     SPAM

     :0
     /dev/null
}

What is fundamentally unclear to me is the utility of generate a
carbon copy only to immediately send it to /dev/null

    SPAM=SPAM
    # Change this to /dev/null when you feel confident

    :0:
    * ^Subject:.*(\$\$+|!!+)
    $SPAM

You will want to remove the lock when you start sinking stuff to
/dev/null, although in practice, newish versions of Procmail ought to
be smart enough to ignore the requested lock when it points to
/dev/null. (Unfortunately, putting the colon in a variable doesn't
seem to work. If you get bored, write a preprocessor which generates a
.procmailrc with appropriate locking for you.)

/* 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>