procmail
[Top] [All Lists]

Re: Confused newbie....

2004-05-24 08:32:25
Steffen Bisgaard wrote:

I may be blind, but why does this not work?

The question mark is a special character. It means "zero or one of the preceding."

* Subject: {Filename?} Re:

That will match a line in the header (surely you meant to left-anchor it, but it isn't left-anchored) that has, anywhere along the line,

 Subject: {Filename} Re:
or
 Subject: {Filenam} Re:

without regard to case (because you don't have the `D' flag on the recipe and probably don't want it).

Try this:

 * ^Subject: {Filename\?} Re:

instead, so that the question mark in the regular expression will be treated as a literal question mark.



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

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