procmail
[Top] [All Lists]

Re: MATCH operator and subject adjustment

2001-11-13 00:26:15

Hiya.

On Tue, Nov 13, 2001 at 02:22:30AM +0100, Holger Wahlen wrote:

This should do:

  # unset SHELLMETAS to prevent use of a shell
  OLDSHELLMETAS="$SHELLMETAS"
  SHELLMETAS

  :0 fhw
  * ... other conditions ...
  * ^Subject:.*\[[a-z0-9]+]
  | sed '/^Subject:/s/\[[a-zA-Z0-9]*] //'

  # restore old value
  SHELLMETAS="$OLDSHELLMETAS"

Perfect!  Thanks!  This is *exactly* the thing I was looking for.

Does SHELLMETAS on a line by itself set the variable to null, or
should I play it safe and use 'SHELLMETAS=""' ?

Could you trim your quotings, please? Thanks.

Will do.  ;)

-- 
  Paul Chvostek                                             
<paul(_at_)it(_dot_)ca>
  Operations / Development / Abuse / Whatever       vox: +1 416 598-0000
  IT Canada                                            http://www.it.ca/

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