sieve filtering utf 8 strings
axel.luttgens at skynet.be
Wed Sep 2 22:17:45 UTC 2015
> Le 2 sept. 2015 à 17:03, Sergey Schwartz a écrit :
> I'm completely stuck, so asking for advice.
> My user has a sieve script which checks message header if it contains words in russian like 'Лист бронирования отправлен'.
> Pritty simple script
> # rule:[Отправлено]
> if allof (header :contains "subject" "LDS (robot): Лист бронирования отправлен", header :contains "from" "noreply at bgoperator.com")
> fileinto "Отправлено";
> I don't have errors compiling the script or executing it via LMTP, but it doesn't work.
> Normally user receives messages from robot with subject encoded as quoted-printable
> Subject: =?UTF-8?Q?LDS_(robot):_=D0=9B=D0=B8=D1=81=D1=82?=
> When I send a test message via Thunderbird with required words - sieve works fine and subject is encoded in base64
> Subject: =?UTF-8?B?0JvQuNGB0YIg0LHRgNC+0L3QuNGA0L7QstCw0L3QuNGPINC+0YLQv9GA?=
> It is the same text, but encodind is different - base 64 works fine and quoted-printable does not.
> Is it possible to have both supported for sieve ?
IIRC, many enhancements have been brought to dovecot/sieve handling of encodings over the consecutive past releases.
What version are you running?
More information about the dovecot