Hello list, I have noticed that sieve vacation action breaks some non-english letters in the subject. I tested with russian language, if subject contains letters from specific diapason russian alphabet, the message received with unreadable subject, but text in the body with the same letters looks ok. Here is example of full subject header, it contains russian alphabet: Subject: ?????????????????????????????????????????????????? Maybe this headers will be usefull: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit .dovecot.sieve file looks correct, here is it: require ["vacation"]; # rule:[test] if anyof (true) { vacation :days 1 :addresses ["user at domain.com"] :subject "?????????????????????????????????" text: ???????? ??????? ?????????(Test russian message). ; } I'm running dovecot-1.1.16 with dovecot-sieve-1.1.6 and managesieve-0.10.6. Please tell, is it possible to fix this ?
Le 8 juil. 09 ? 12:04, Nikita Koshikov a ?crit :> Hello list, > > I have noticed that sieve vacation action breaks some non-english > letters in the subject. > I tested with russian language, if subject contains letters from > specific diapason russian alphabet, the message received with > unreadable subject, but text in the body with the same letters looks > ok. > Here is example of full subject header, it contains russian alphabet: > Subject: ?????????????????????????????? > ???????????????????? > > Maybe this headers will be usefull: > MIME-Version: 1.0 > Content-Type: text/plain; charset=utf-8 > Content-Transfer-Encoding: 8bit > > .dovecot.sieve file looks correct, here is it: > require ["vacation"]; > # rule:[test] > if anyof (true) > { > vacation :days 1 :addresses ["user at domain.com"] :subject > "?????????????????????????????????" > text: > ???????? ??????? ?????????(Test russian > message). > ; > } > > I'm running dovecot-1.1.16 with dovecot-sieve-1.1.6 and > managesieve-0.10.6. > > Please tell, is it possible to fix this ?I don't know whether dovecot-sieve is supposed to do the conversion automatically, but it is sure that an RFC822 header MUST be in US- ASCII (so as to be 7bit-clean). The required encodings are described in: http://www.rfc-editor.org/rfc/rfc2047.txt For example, a subject header with the french word "R?sistance" could be encoded as: Subject: =?iso-8859-1?Q?R=E9sistance? Could you try by inserting the encoded subject line directly in the config file and see what gives? On the other hand, perhaps does sieve provide the needed tools itself; someone? Axel
On Wed, July 8, 2009 12:04, Nikita Koshikov wrote:> Please tell, is it possible to fix this ?fix is nedded in sieve client what ever that is, not in anything dovecot does so to test: iconv the sieve script to unicode, and save it, then it works ? -- xpoint
On Sat, 11 Jul 2009 07:24:51 +0200 (CEST) "Benny Pedersen" <me at junc.org> wrote:> > On Wed, July 8, 2009 12:04, Nikita Koshikov wrote: > > > Please tell, is it possible to fix this ? > > fix is nedded in sieve client what ever that is, not in anything dovecot does > > so to test: > iconv the sieve script to unicode, and save it, then it works ? >Sieve script has already been in UTF encoding and this not working. The problem is to convert e-mail headers into the right format, as Alex wrote. If convertion is made "by hands" everything works as expected.> -- > xpoint >
Nikita Koshikov wrote:> Hello list, > > I have noticed that sieve vacation action breaks some non-english letters in the subject. > I tested with russian language, if subject contains letters from specific diapason russian alphabet, the message received with unreadable subject, but text in the body with the same letters looks ok. > Here is example of full subject header, it contains russian alphabet: > Subject: ?????????????????????????????????????????????????? > > Maybe this headers will be usefull: > MIME-Version: 1.0 > Content-Type: text/plain; charset=utf-8 > Content-Transfer-Encoding: 8bit > > .dovecot.sieve file looks correct, here is it: > require ["vacation"]; > # rule:[test] > if anyof (true) > { > vacation :days 1 :addresses ["user at domain.com"] :subject "?????????????????????????????????" text: > ???????? ??????? ?????????(Test russian message). > ; > } > > I'm running dovecot-1.1.16 with dovecot-sieve-1.1.6 and managesieve-0.10.6. > > Please tell, is it possible to fix this ?Hello all. I use: dovecot-1.2.4_1 dovecot-managesieve-0.11.9 dovecot-sieve-1.2+0.1.12 at FreeBSD-7.1 and got same problem with Russian letters in subject. Subject: Auto: ???????????????? ???????????????????? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Is this problem still not fixed in new sieve implementation? -- Best regards, Proskurin Kirill