On 2/9/2015 1:47 PM, Ralf Hauser wrote: > Hi, > > The following rule has served us well for a long time: > /^Subject:.*<Urgent\/>.*/ FILTER relay... > > Today, it missed the following > <<Feb 9 09:58:27 mail13 postfix/cleanup[8310]: A1D63200A290: warning: > header Subject: > =?iso-8859-1?Q?WG:_Jugement_int=E9gral_Frenner_Pierre_Alain,_13.11.1977_<Urg > e?=? =?iso-8859-1?Q?nt/>_TestABC_XYZ?= from mail01....>> > > It seems that outlook after approx. 55 characters terminates the encoding > and immediately restarts it. In the above sample it breaks the keyword > "Urgent" in 2 pieces. > > Is there a way to apply a FILTER relay on a subject pattern where the > subject is decoded?? > > A similar discussion was already in > http://marc.info/?l=postfix-users&m=141047275418893&w=2 but in the end was > not solving the encoding question. > > Many thanks for any hints in advance > > Ralf >
As the message you reference says, header_checks are a blunt instrument and can only match exactly what is on the wire, no decoding is done. Unfortunately, encoded subjects are very difficult to match with a simple regexp. If this is something you need, you might try a milter that has some decoding feature rather than header_checks. -- Noel Jones
