a question about dovecot-sieve
question discribe:
example:
vim .dovecot.sieve
require ["fileinto"];
# rule:[filter1]
if anyof (header :contains "Subject" "测试邮件")
{
fileinto "sieve";
}
when i write a mail ,give subject "这是一封测试邮件" , then server convert this subject to "
SUBJECT: =?UTF-8?Q?=E8=BF=99=E6=98=AF=E4=B8=80=E5=B0=81=E6=B5=8B=E8=AF=95=E9=82=AE?= =?UTF-8?Q?=E4=BB=B6?=
"
the essential question is when the mail go through dovecot-sieve plugin, the sieve plugin get mail subject is "这是一封测试邮 件" not "这是一封测试邮件",there is a extra space added(which as segmentation between "=?UTF-8?Q?").
SIMPLY SAY:edit subject"这是一封测试邮件" ——>server convert "SUBJECT: =?UTF-8?Q?=E8=BF=99=E6=98=AF=E4=B8=80=E5=B0=81=E6=B5=8B=E8=AF=95=E9=82=AE?= =?UTF-8?Q?=E4=BB=B6?="——>sieve plugin get "这是一封测试邮 件"
The result is filter failure. is this a bug ? How can I avoid it?
thanks
Op 8-7-2016 om 6:53 schreef 刘莹莹:
question discribe:
example:
vim .dovecot.sieve
require ["fileinto"];
# rule:[filter1]
if anyof (header :contains "Subject" "测试邮件")
{
fileinto "sieve";
}
when i write a mail ,give subject "这是一封测试邮件" , then server convert this subject to"
SUBJECT: =?UTF-8?Q?=E8=BF=99=E6=98=AF=E4=B8=80=E5=B0=81=E6=B5=8B=E8=AF=95=E9=82=AE?= =?UTF-8?Q?=E4=BB=B6?=
"
the essential question is when the mail go through dovecot-sieve plugin, the sieve plugin get mail subject is "这是一封测试邮 件" not "这是一封测试邮件",there is a extra space added(which as segmentation between "=?UTF-8?Q?").
SIMPLY SAY:edit subject"这是一封测试邮件" ——>server convert "SUBJECT: =?UTF-8?Q?=E8=BF=99=E6=98=AF=E4=B8=80=E5=B0=81=E6=B5=8B=E8=AF=95=E9=82=AE?= =?UTF-8?Q?=E4=BB=B6?="——>sieve plugin get "这是一封测试邮 件"
The result is filter failure. is this a bug ? How can I avoid it?
I cannot reproduce this problem here. What version of Dovecot and Pigeonhole are you using?
Regards,
Stephan.
participants (2)
-
Stephan Bosch
-
刘莹莹