Wietse Venema:
> Ralf Hauser:
> > 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??
> 
> Postfix does not decode email. You could allow the "?=\s+=?iso-8859-1?Q?"
> explicitly, as in the following "extended" PCRE pattern:
> 
> /^Subject:.*<(?=\s+=?iso-8859-1?Q?)?
>       U(?=\s+=?iso-8859-1?Q?)?
>       r(?=\s+=?iso-8859-1?Q?)?
>       g(?=\s+=?iso-8859-1?Q?)?
>       e(?=\s+=?iso-8859-1?Q?)?
>       n(?=\s+=?iso-8859-1?Q?)?
>       t(?=\s+=?iso-8859-1?Q?)?
>       \/(?=\s+=?iso-8859-1?Q?)?>/x FILTER relay...
> 
> but maintaining patterns like this is painful (the "x" toggles the
> PCRE extended flag as described in the pcre_table(5) manpage).

Forgot to quote the ?. The (?=\s+=?iso-8859-1?Q?) should be 
(\?=\s+=\?iso-8859-1\?Q\?). Do not change the "?" after the ")".

        
>       Wietse
> 
> > 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
> > 
> > 
> 

Reply via email to