[Top] [All Lists]

Re: Rule not being honored. Why?

2009-02-10 15:33:53
On Tue, Feb 10, 2009 at 02:12:17PM -0600, Christopher L. Barnard wrote:

My golden rule:
* ^From.*<root(_at_)rudun-nbmaster00(1|2)\.cc1\.rush\.edu>
* ^Subject:.L700 NetBackup

Your second condition should not have a dot there.
Probably it won't come up as a problem for you, but
it has to do with the rigor I wrote about earlier.
That would match on, e.g.,


Or one day your server configuration whill change and the
message will come with a series of spaces instead of one,
for example.  (That is not so far-fetched: it happened
on the panix server a few years ago when people invoked
SpamAssassin.  SA converted the space after the colon in
the headernames to five spaces!  It took a bunch of people
a while of hacking around to find out what was wrong with
some procmail rules.)  That's why my advice is, just code
it right in the first place and avoid the headache later.

How about:

  * ^Subject:[  ]*L700 NetBackup

(Space and tab in the brackets.)

procmail mailing list   Procmail homepage:

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