procmail
[Top] [All Lists]

Re: Procmail is over-matching my expression

2005-02-25 15:06:56
Justin Gombos schreef:


[MAILDIR]
I'm in the habit of defining paths to end in a slash whenever I code
anything, because I recall cases (in other languages) where absense of
that ending slash created problems by causing the string to be treated
as a regular file.. so I normally append the slash as a safe
practice.

I think you misunderstand the workings of MAILDIR. It is not just
a place to keep a path-string. See man procmailrc.
For example: changing the value of MAILDIR changes the current
directory.

you folks seem to be correct that the (.*\<)? causes it to span
multiple
lines

See man procmailrc, just type /\\< to find it.



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

It is not really a reserved variable, but a name that is often
used to refer to the initial From[ ]header as the From_ header.
In man procmail it is called the 'postmark'.

I prefer to use H_FROM_ as the name of the variable to hold
the value of the From_ header, I like the prefix H_ for
Headerline-values.


I always learn more than I expect from this list.

As long as you don't believe everything that is written here,
and test all code in a sandbox, and react on every mistake
that you see or find.

-- 
Grtz, Ruud


____________________________________________________________
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

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