procmail
[Top] [All Lists]

Re: Is the proper behavior? (Did I miss?)

2004-01-27 11:24:46
On Tue, 27 Jan 2004, Tuc wrote:

:0c
* ^^From \/.+
! -f "$MATCH" tuc(_at_)laptop(_dot_)ttsg(_dot_)com

      Its too greedy, I get the date and all that. Is there a way to
put a \/ on the other side of the first space or something?

Try using the Return-Path header instead:

:0 c
* ^Return-Path: <\/[^>]+
! -f "$MATCH" tuc(_at_)laptop(_dot_)ttsg(_dot_)com

I STFW and didn't see anyone that parsed out PART of a piece using \/,
is it possible?

It's possible but tricky.  You have to carefully craft the pattern that
appears to the right of the \/ such that the pattern stops matching when
it reaches something you do NOT want included.  Sometimes this is very
difficult.


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