On 2014/12/15 1:24 PM, John Long wrote:
> Hi,
> 
> On Mon, Dec 15, 2014 at 06:29:43PM +0100, Francesco Ariis wrote:
>> ~f does work on my machine  (Tested with <limit>~f t...@example.org /and/
>> with 'score').
>> The "From" header (yahoo group) looks similar to yours:
> 
> It's not similar enough:
> 
>>
>>     From: "t...@example.com [abcusers]" <badema...@yahoogroups.com>
>       From: "phoney bologna bolognapho...@hotmail.com [bademails]" 
> <badema...@yahoogroups.com>
> 
> You have a real email id in the sender portion. The example I am using has a
> non-RFC format (AFAIK) email address with 
> 
> firstname lastname em...@provider.com blah 
> 
> I think it would normally have to be 
> 
> firstname lastname <em...@provider.com>
> 
> or 
> 
> "firstname lastname" <em...@provider.com>
> 
> I suspect this nonconformance is part of the problem and I don't know how to
> get Mutt to scan the header since it could be not a valid header at all.
> 
> /jl
> 

Sorry about this...

One more fix (... I've always had trouble remembering the difference
between \W and \s).

Actually, even-even-even better-better-better would be:

^From:\s+"\S+\s+\S+\s+[^@]+@hotmail\.com\s+\[[^\]]+\]"\s+<[^@]+@yahoogroups\.com>\s*$

There. That should be right. It's a regular expression that tests for a
line that matches your string, starting with 'From:...' and ending with
the end-of-line with optional whitespace following the '>' character.

Again, if your 'score' program doesn't use this type of regular
expression, I apologize for the noise. Since no one has responded to my
previous 4 replies, I assume I should shut up now.

Happy Holidays.

Reply via email to