[Dovecot] Sieve plugin: Filtering UTF-8 Emails
micha at pocomail.de
micha at pocomail.de
Mon Nov 23 01:32:30 EET 2009
hi Pascal,
sorry, here are my infos:
dovecot version: Dovecot v1.0.rc15
i am not sure how to find out, which version of cumsieve the server has,
as far as i can see with a locate cumsieve,
it must be version 1.0.3 or 1.1.6.
the scripte and a test-email is attached.
the log says:
deliver(shop at xxxx.de): "2009-11-23 00:09:45 "Info:
msgid=<4B09C4AE.3070306 at xxxx.de>: saved mail to INBOX
thanks for your help!!
michael
Am Sonntag, den 22.11.2009 23:01:35 schrieb Pascal Volk
<user+dovecot at localhost.localdomain.org>...
> On 11/22/2009 09:33 PM micha at pocomail.de wrote:
>
>> hi all,
>>
>> i hope it´s okay for questions about the sieve plugin here...
>>
>
> Yes, this is the right mailing list for such questions…
>
>
>> my problem is, that the filters do not seem to match utf8-content
>>
>> for instance: the email:
>>
>> Content-Type: text/plain; charset="utf-8"
>> Content-Transfer-Encoding: quoted-printable
>> Subject:
>> =?utf-8?Q?Erinnerung:=20Bitte=20f=C3=BChren=20Sie=20die=20Kaufabwicklung=20durch?=
>>
>> when i use the same subject (of course in utf-8) in my ".dovecot.sieve",
>> the filter never matches ;-((
>>
>> does anyone have an idea howto make the sample here matching by sieve ???
>>
>
> Huh, where is your script? No script - no error checking. ;)
>
> Which Dovecot version? Which Sieve version?
>
> # file .dovecot.sieve
> .dovecot.sieve: UTF-8 Unicode text
>
> ~/.dovecot.sieve:
> require "fileinto";
> if header :matches "subject" "Erinnerung: Bitte führen Sie die Kaufabw*" {
> fileinto "Trash";
> setflag "\\Seen";
> }
>
> Log: Info: sieve: msgid=<20091…ple.com>: stored mail into mailbox Trash'
> The test message is attached.
>
>
> Regards,
> Pascal
>
>
> ------------------------------------------------------------------------
>
> Betreff:
> Erinnerung: Bitte führen Sie die Kaufabwicklung durch
> Von:
> spambot at example.com
> Datum:
> Sun, 22 Nov 2009 22:50:29 +0100 (CET)
> An:
> sven at firma.tld
>
> An:
> sven at firma.tld
>
>
> <html>
> <body>
> <h1>Hello wordl</h1>
> <p>foo bar baz</p>
> </body>
> </html>
>
-------------- next part --------------
An embedded message was scrubbed...
From: Michael <info at xxxx.de>
Subject: Erinnerung: Bitte =?UTF-8?B?ZsO8aHJlbiBTaWUgZGllIEthdWZhYndpY2ts?=
=?UTF-8?B?dW5nIGR1cmNo?=
Date: Mon, 23 Nov 2009 00:09:34 +0100
Size: 1035
Url: http://dovecot.org/pipermail/dovecot/attachments/20091123/86adf2bf/attachment-0001.eml
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: .dovecot.sieve
Url: http://dovecot.org/pipermail/dovecot/attachments/20091123/86adf2bf/attachment-0001.pl
More information about the dovecot
mailing list