Re: .mailfilter file stopped working with 2.7.1
Sam Varshavchik <[email protected]> Thu, 16 Jan 2014 18:02:06 -0500
| Newsgroups | gmane.mail.maildrop |
|---|---|
| Message-ID | <[email protected]> |
Nerijus Baliunas writes: > On Thu, 16 Jan 2014 13:42:11 +0200 Nerijus Baliunas > <[email protected]> wrote: > > > Does not work: > > if (/^From: *"System Anti-Virus Administrator" <[email protected]>/) > > to "./Maildir/.avirus" > > > > Works: > > if (/^From: *System Anti-Virus Administrator <[email protected]>/) > > to "./Maildir/.avirus" > > And with 2.6.0 it's vice versa - works with quotes and does not work without. > The raw header line in the message is: > > From: "System Anti-Virus Administrator" <[email protected]> Ok. This is a result of the switch to canonical UTF-8 pattern matching. The message gets transcoded to a canonical UTF-8 format, internally, before it gets searched. This involves converting all headers to a canonical format. As part of this process, all headers get reparsed and reformatted. Message text encoded with quoted-printable or base64 gets decoded. Before the switch to UTF-8, it was not really possible to search base64-encoded content, so this was a pretty big deal. In the case here, the quotes are redundant, so they're removed before the actual search takes place. So now, the same search pattern will match a From: header with or without quotes, around the names. It should also match a From: header that uses obsolete syntax, like "From: [email protected] (System Anti-Virus Administrator)", using the same pattern. You can see what exactly gets searched by executing "reformime -u" with the message on standard input. I agree that this is confusing, but this is the right thing to do. Being able to correctly match non-Latin search patterns is more important. So, the only result from this, is that better documentation is needed. Generally, the patterns should be written against the output from reformime -u. ------------------------------------------------------------------------------ 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 iQIcBAABAgAGBQJS2GTuAAoJEGs6Yr4nnb8lu/0QAOQZZglmH3zfkaZcr9lNdq// QoiJ14s8lU321b2+3M56jLOrFbI/MTFDi+9UeAntbv69u0lxTeUtgW4hBZT9gXWC stNJcIsW5DU6OYlo7ELQeEDFtj3D9mjCFWjrb/eIpulGULODSOPQIWlwxSHLEqF6 cAcA8OQQULdP9V+PLwFbKNAYaUUa5v1aAL2yTPVZI1i7vUBqa9Tc8gY8pmwiP5wM CgcZ+QUiXxAGu5w6oonjzvr+V1SiALxyME8LhSQKenWh1LMU9tZalhYd19pQ8mnR GEN2Wq/kLysC1rfjJLp57n9dL9Pn2g1VqpiH5tqWrPm3mNg5NCHpizMWQFczP9bd raNfy03iA9QfHycLtQKSAT2ltqMNRvdSUkXAKVi1i8oL7fF86xZhTF8wZXmHxS3B tmsb3XgR2Hp39gsxFOWCzStnfPtwwGhRTSe+YbU0LgO//gHMsVUpDAAkdKBhOmdG It6LgsrdSStbzJhnVmDFwCK7OgD7/J6LWL6AfRYKB2RuvLfKT6JGBlzhTy3u1lMJ wVkM/x4aTENlCo3LU+UilrlqQXpvc/YpRPQgUGKheg7cHiUKMpBVIZ14XBf99Dc9 PDhpKfRMEicL6UjcE8deCtmh/J0KfphM97X9edG5961ufEaEmzIn1c3FD9KT53QL PAlK+Tm94Tc/X/Zr9Bvx =Z2EC -----END PGP SIGNATURE-----