procmail
[Top] [All Lists]

Re: stripping MATCH's right hand side

2001-12-07 13:52:15
Well, this is wrong, isn't it, if there's a hyphen in the list's name?

|  :0
|  * ^List-Unsubscribe:.*leave-isp-\/(_dot_)*(_at_)(_dot_)*isp-lists(_dot_)com
|  isp-`ksh -c 'echo ${MATCH%%-*}'`

Make it this instead:

  :0
  * ^List-Unsubscribe:.*leave-isp-\/(_dot_)*(_at_)(_dot_)*isp-lists\(_dot_)com
  isp-`ksh -c 'echo ${MATCH%-*(_at_)*}'`

Sorry.
DWT

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail