Bug 1053313

Summary: .mailfilter file stops working with 2.7.1-1.fc19
Product: [Fedora] Fedora Reporter: Nerijus Baliūnas <nerijus>
Component: maildropAssignee: Axel Thimm <axel.thimm>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: axel.thimm, bcl, bruno
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-17 00:10:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
.mailfilter file
none
maildrop 2.6.0 output
none
maildrop 2.7.1 output none

Description Nerijus Baliūnas 2014-01-15 02:18:08 UTC
Created attachment 850321 [details]
.mailfilter file

Attached .mailfilter file works with 2.6.0-2.fc19, but does not with 2.7.1-1.fc19. For example, message with "From:" header "System Anti-Virus Administrator" <admin> is matched with 2.6.0, but not with 2.7.1. I used command
maildrop -V 4 -d nerijus <message 2> maildrop2xx.txt.

Comment 1 Nerijus Baliūnas 2014-01-15 02:18:54 UTC
Created attachment 850322 [details]
maildrop 2.6.0 output

Comment 2 Nerijus Baliūnas 2014-01-15 02:19:31 UTC
Created attachment 850323 [details]
maildrop 2.7.1 output

Comment 3 Bruno Wolff III 2014-01-15 05:51:01 UTC
This might be a locale issue. I am not sure which locales maildrop can handle in its filter files. A quick look suggests just ASCII. There are some non-ascii strings in your patterns, and this would be a good place to start looking for a cause.

Comment 4 Nerijus Baliūnas 2014-01-15 11:57:51 UTC
> There are some non-ascii strings in your patterns
Where exactly? I don't see non ascii content in .mailfilter file.

Comment 5 Bruno Wolff III 2014-01-15 13:12:48 UTC
I looked at both of your attached logs and saw non-UTF (and hence non-ASCII) characters show in the patterns in the output.

Comment 6 Nerijus Baliūnas 2014-01-17 00:10:53 UTC
The problem is with the quotes - more info in the mailing list archive:
http://courier-mail-server.10983.n7.nabble.com/mailfilter-file-stopped-working-with-2-7-1-td21212.html

Although the backwards compatibility ir broken here, but there's nothing we can do.