procmail
[Top] [All Lists]

Re: Procmail is over-matching my expression

2005-02-25 14:39:26
On 25 Feb 2005, at 13:20 :29, Justin Gombos wrote:
I realize now where I got that definition from - Martin McCarthy's
Procmail Companion.  He has a cookbook and on page 209 uses that
definition:
  FROM_ = "(From[ ]|(Old-|X-)?\
  (Resent-)?(From|Reply-To|Sender):(.*\<)?)"
I took it as gospel,

McCarthy's book is a good reference for getting going with procmail and one of the only books on procmail. That said, it has some glaring omissions and problems. For example, as far as I have been able to tell, there is no mention of SWITCHRC in the entire book... Because of this, I wouldn't take _anything_ in it as gospel, especially not some of the sample recipes.

Now, if Sean and Ruud and Dallman[1][2] could get together and crank out a 400+ page book on procmail, well, that would be something.

causes it to span multiple lines.  If FROM_ is really a reserved
variable, I'm surprised it didn't cause me problems to use it.

It's not a reserved variable per se, but it is how the "From " header is normally designated. Not waht Ruud said:

The name FROM_ is 'reserved' by a lot of procmail-coders

note the quotes and the reference to procmail CODERS, not procmail itself.

[1] Just picking three names who 1) answer lots of stupid questions correctly and 2) post a lot.

[2] And where is Dallman anyway? It's been about a week since he last posted. Holiday, perhaps?

--
In England 100 miles is a long distance. In the US 100 years is a long time


____________________________________________________________
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