procmail
[Top] [All Lists]

Re: Can not get a filter recognised for one email source

2011-02-16 10:27:41
From procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)de  Wed Feb 16 
10:13:59 2011
Date: Wed, 16 Feb 2011 08:08:13 -0800
To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
From: PSE-L(_at_)mail(_dot_)professional(_dot_)org (Professional Software 
Engineering)
Subject: Re: Can not get a filter recognised for one email source

At 07:10 2011-02-16, N.J. Mann wrote:
With a regexp of
  ^From: .*Debra
  it will not match from: Debra(_at_)emblibrary(_dot_)com because it is 
expecting 
  'from:' followed by one space, followed by one
'any' character, followed by zero or more 'any' characters,

WRONG.

First, Procmail is case insentitive unless told otherwise (via a recipe 
flag), so, From/from doesn't matter one iota.  It also does not "ignore" 
headers that don't conform to the first-character-capitalized format.

If the capitalization issue is not causing the problem, then the character
after the ":" in the misbehaving headers must not be a real [SP] (' ') char,
but something that just "looks like" one.  e.g. a '\0xA0' character, used by
MS as a 'non-break' space.  This is a violation of the Internet mail message
format, as it explicitly requires a [SP] character to separate the header
name field, from the value field.  But, given the sender is using home-brew
mailer software, it wouldn't be all that surprising to find 'another' standard
violation in their software.

Anyway,_IF_ that's the case, then removing the from the recipe =will= fix the
problem.

Nick may have had the right solution, albeit for the wrong reason.  <grin>

____________________________________________________________
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