procmail
[Top] [All Lists]

Re: Questions on variable usage

2002-07-09 19:25:20
At 17:43 2002-07-09 -0700, procmail(_at_)deliberate(_dot_)net did say:
the variable as below, I lose the literal quotes in both the "?
and the [^"] instances when the variable is substituted. Can I
get this to work using this variable list approach?

Escape the "'s in the regexp:
        \"?[^\"]

substitute for something to run after the pipe to effectively
"send it to /dev/null" by simply changing the $ACTIVEBOX
variable?

Since you're not running with the 'w' or 'W' flags on the delivery recipe (if you did, you would add 'i' in this case), you can pipe to /bin/true - the benefit of which is that you're not reading in the entire message just to discard it.

:0
* $ 9876543210^0 ^Content-[-a-z0-9_]+:.*="?[^"]*\.${BADEXT}

I'm sure you're aware that you are checking the *HEADERS* for material which is to be found in the *BODY*.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

_______________________________________________
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>