procmail
[Top] [All Lists]

RE: empty body

2004-02-07 11:25:42



From: Ruud H.G. van Tol
Sent: Saturday, February 07, 2004 3:58 AM
[...]

Nice recipe. You can also use $ for NL.
Enhancement: add a Tab between the [].

  :0:
  * B ?? ^^([  ]|$)*^^
  blank-mail

(as allways, [  ] stands for [<space><tab>])


That is simpler. Thanks.

I'm thinking that as a matter of publication style, it might be good to
always use explicit variables for tabs and white space as in:

TAB="<tab>"         # <tab> is the literal character
SPACE="<space>"     # likewise for <space>
WS="[$SPACE$TAB]

:0:
* $ ?? ^^($WS|$)*^^
blank-mail

The initial $-sign is back, but the recipe is clearer. (I wish procmail
accepted
the \n,\r,\t notations).



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