procmail
[Top] [All Lists]

Re: Trimming from the right

2006-11-25 02:07:49
Ruud H.G. van Tol schreef:
Ruud H.G. van Tol:

  :0
  * ^List-Subscribe:(.*)<mailto:\/[-A-Z0-9_+]+
  * MATCH ?? ^^\/.+-

You could make that line more specific:

Oops, thanks Bart, it is not a replacement but an addition:

   :0
   * ^List-Subscribe:.*<mailto:\/[-A-Z0-9_+]+
   * MATCH ?? ^^\/.+-(digest|on|subscribe)^^
   * MATCH ?? ^^\/.+-
   * MATCH ?? ^^\/.+[^-]
   { LISTNAME = $MATCH }

or:

   :0
   * ^List-Subscribe:.*<mailto:\/[-A-Z0-9_+]+-(digest|on|subscribe)@
   * MATCH ?? ^^\/.+-
   * MATCH ?? ^^\/.+[^-]
   { LISTNAME = $MATCH }

-- 
Groet, Ruud

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>