Re: Can not get a filter recognised for one email source
Robert Bonomi <[email protected]>
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <[email protected]> |
> From [email protected] Wed Feb 16 10:13:59 2011 > Date: Wed, 16 Feb 2011 08:08:13 -0800 > To: [email protected] > From: [email protected] (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: [email protected] 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>