procmail
[Top] [All Lists]

Re: Trimming from the right

2006-11-23 03:33:38
Ruud H.G. van Tol schreef:

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

You could make that line more specific:

    * MATCH ?? ^^\/.+-(digest|on|subscribe)^^


  * MATCH ?? ^^\/.+[^-]
  { SUBLINK = $MATCH }

See also 

  http://www.professional.org/procmail/listname_id.rc 

which contains a 

  :0
  * ^Sender:[  ]*\/[-A-Z0-9_+]+-owner
  * 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>