procmail
[Top] [All Lists]

Re: correct syntax of subject variable?

2003-08-28 08:33:38
Dizzy Jay explained to Dragoncrest,

When writing rules for headers it is common to start them with
a caret, since each header by definition should appear at the
beginning of the line.

This is an impression I have, which may be wrong:

Even if there's no risk of an appearance of the string later in the line, the caret speeds things up, because if the text right after a newline mismatches the rest of the string -- for example, you're looking for ^Subject:somepattern but the first character in the line isn't S, or it's Sender: so the second character isn't U -- procmail can just scan right ahead to the next line without comparing the characters in the message to the pattern.


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