Re: [Dovecot] Sieve plugin: Filtering UTF-8 Emails
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@xxxx.de): "2009-11-23 00:09:45 "Info: msgid=<4B09C4AE.3070306@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@localhost.localdomain.org>...
On 11/22/2009 09:33 PM micha@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@example.com Datum: Sun, 22 Nov 2009 22:50:29 +0100 (CET) An: sven@firma.tld
An: sven@firma.tld
<html> <body> <h1>Hello wordl</h1> <p>foo bar baz</p> </body> </html>
# Erinnerung Kaufabwicklung if allof ( header :comparator "i;ascii-casemap" :contains "Subject" "Erinnerung: Bitte führen Sie die Kaufabwicklung durch", ) { redirect "xxx@googlemail.com"; stop; }
On 11/23/2009 12:32 AM micha@pocomail.de wrote:
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@xxxx.de): "2009-11-23 00:09:45 "Info: msgid=<4B09C4AE.3070306@xxxx.de>: saved mail to INBOX
Please stop top posting.
Your installation is horrible old. You may consider an update.
You are using the omparator "i;ascii-casemap". Please read in RFC 2244 section 3.4 about it <http://tools.ietf.org/html/rfc2244#section-3.4>. And you will know, why your rule never will match. You could test my working script from my last message.
Regards, Pascal
The trapper recommends today: cafefeed.0932700@localdomain.org
participants (2)
-
micha@pocomail.de
-
Pascal Volk