Re: .mailfilter file stopped working with 2.7.1
Sam Varshavchik <[email protected]>
| Newsgroups | gmane.mail.maildrop |
|---|---|
| Message-ID | <[email protected]> |
Nerijus Baliunas writes: > On Wed, 15 Jan 2014 19:56:09 -0500 Sam Varshavchik <[email protected]> > wrote: > > > Correct. maildrop is now MIME-aware. The search patterns should simply be > > specified in UTF-8 (noted in the maildropfilter man page), and MIME-encoded > > content will be properly decoded, transcoded to UTF-8, and compared. Mixed > > encoding should be fine, they'll be transcoded to UTF-8, as long as it's an > > encoding that's known to iconv. However, it does mean that messages must be > > properly MIME-encoded. > > > > Looks like from the log files shows that the sample message appears to have > > raw ISO-8859-1 content in the headers, which is invalid. > > Yes, even worse - subject has both ISO-8859-13 and UTF-8 raw characters > without > any MIME encoding. > > How can I filter such badly formatted messages? Note, that I filter by > "From" header, > which does not have illegal characters. I can send sample message if needed. If you're filtering by the From: header, which is properly encoded, you just specify your search pattern directly in UTF-8. So, if the message has: From: =?iso-8859-1?Q?H=F3la!?= <[email protected]> This should be matched by maildrop's search pattern: if (/From:.*Hóla/) The fact that Subject might be broken and not encoded properly doesn't matter. You're matching on the From: header. Note that the search pattern is always in UTF-8. ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Courier-maildrop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/courier-maildrop
signature.asc
(application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJS1zlVAAoJEGs6Yr4nnb8l/RkQAObhEaNYdbJptPLjaBnWkbnu /cdeDiBOQpilMtzZipE98QWNVhidEcrdm2KDL2AoRXEcJsR4b6uvyvfEkIXIGIBn BtZdlIEQE6mYIGIQeCZ44VIWpk/txKRNx3u1UnSWvJeDprh/O8VcQT2kkVTKCxz3 CKuGC6wYHIznGHfK6mjvt0/kLYthtiuxLGGGLJDadh97qILQ2Va6JGOTKdHFPZs0 vor9B0m7cqp05kOu15oi/3dh8rNL4dZLFhZWOWoXieN1DDRKHrOFglGIY1FOHKXj Rj45RCyIDofAB/m+VDmISHqQehVNangExmNDejvFA6e2V8uFgWP1VS5Q08/WGzN8 f42c0pop8iB4drptAr5LtMsUDFmvgxeR/+h42LuyYnwo9O0we8OziXtm3+L2ThQm r9DDFnKWRBXiXkYJlwmgtZtM37yjX+lR+jV1kV+CU7C6UHtP2xAEtF5edoeBdj1b xlaHL3IJ0Z9+ct2GGO+mgUj8GkcEkbBrqcE/iGj4cskyCcCdkHrWicsyZ3bN0JC6 e8CAWoYOG3wazY1z4ZC/YVgoGqyEnsF0VsJIa5jyaRT7mMcCF9PtNP31pg5J+6s0 myMOL3rqz07bVhB2hrGkfQXToqNZt03x1Uc2SaPplSxCU5w1U0BuK/DFrNQHHHmK o9J8mIOT7lc/hR4NjyTe =AKAw -----END PGP SIGNATURE-----