procmail
[Top] [All Lists]

Split (\/) regex with optional component on left

2009-12-16 16:37:14
Hello.

I use the following recipe to deliver most mail received via mailing
lists.

:0
* ^(List-(Id|Post)|X-(Mailing-)?List):.*<(mailto:)?\/[^(_at_)(_dot_)]+
ML/$MATCH/

So far it works for all except one of the intended matches.  Headers
such as the following:

List-Post: <mailto:listname(_at_)example(_dot_)com>

...result in delivery to 'ML/mailto:listname' rather than 'ML/listname'.
I understand that using '\/' causes matching on the left to be stingy
which I suppose is causing the result I am getting.  Is a separate
recipe for List-Post the only viable option here?
____________________________________________________________
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>