procmail
[Top] [All Lists]

Re: Replacing characters in $MATCH, and folders with periods

2004-04-09 07:14:52
Dallman asked Tibur,

The rest, though, I stand by, including the question about the
blank space.

The blank space was to deal with procmail's stingy-to-the-left, greedy-to-the-right matching when there's an extractor in the condition. If the topmost header whose fieldname is matched by ^TO_ has a space after the colon, as it almost always will,

* ^TO_\/.+

will match up to the colon to ^TO_ and everything from the space onward to .+, so Tibur hard-coded the space to the left of the extractor. Of course, in the rare cases of a tab or no whitespace at all immediately to the right of the colon, the line won't match the condition at all.


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