Re: I can not filter emails with words with accents

Sebas PRE <scalero@pre.ddol.es> Thu, 15 June 2006 11:22 UTC

Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k5FBMr2m032078; Thu, 15 Jun 2006 04:22:53 -0700 (MST) (envelope-from owner-ietf-mta-filters@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k5FBMr0h032075; Thu, 15 Jun 2006 04:22:53 -0700 (MST) (envelope-from owner-ietf-mta-filters@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-mta-filters@mail.imc.org using -f
Received: from srv-ln-pre1.datadec-online.com (sf1mymensajes.datadec-online.com [217.145.176.20] (may be forged)) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k5FBMp4o032040 for <ietf-mta-filters@imc.org>; Thu, 15 Jun 2006 04:22:52 -0700 (MST) (envelope-from scalero@pre.ddol.es)
Received: from srv-ln-pre1.datadec-online.com (localhost.localdomain [127.0.0.1]) by srv-ln-pre1.datadec-online.com (envelope-from scalero@pre.ddol.es) (8.13.1/8.13.1) with ESMTP id k5FBMZf9007424; Thu, 15 Jun 2006 13:22:35 +0200
Received: (from apache@localhost) by srv-ln-pre1.datadec-online.com (8.13.1/8.13.1/Submit) id k5FBMZHc007423; Thu, 15 Jun 2006 13:22:35 +0200
Received: from 192.168.66.14 (192.168.66.14 [192.168.66.14]) by mymensajes.pre.ddol.es (Horde MIME library) with HTTP; Thu, 15 Jun 2006 13:22:35 +0200
Message-ID: <20060615132235.00joepoihq8w8gs0@mymensajes.pre.ddol.es>
X-Priority: 3 (Normal)
Date: Thu, 15 Jun 2006 13:22:35 +0200
From: Sebas PRE <scalero@pre.ddol.es>
To: Kjetil Torgrim Homme <kjetilho@ifi.uio.no>, ietf-mta-filters@imc.org
Subject: Re: I can not filter emails with words with accents
References: <20060615114326.aezr7hs7qcgoos84@mymensajes.pre.ddol.es> <1150368023.16538.94.camel@mattugur.ifi.uio.no>
In-Reply-To: <1150368023.16538.94.camel@mattugur.ifi.uio.no>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Disposition: inline
User-Agent: Internet Messaging Program (IMP) H3 (4.0.3)
X-SMTP-Vilter-Version: 1.1.9
X-SMTP-Vilter-Spam-Backend: spamd
X-Spam-Score: 0.0
X-Spam-Threshold: 30.0
X-Spam-Probability: 0.0
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by balder-227.proper.com id k5FBMq4o032070
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

Yes I use Cyrus IMAPD 2.2.12 and go to ask to the info-cyrus the same 
cuestión.

The problem I think is related with the encode of mail headers, when a 
mail have
accents for example in the Subject this header is encoded:

Example this is I see in a mail sent with Outlook Express with a Subject like
"leído":

Subject: =?iso-8859-1?B?bGXtZG8=?=

I don´t know if sieve considers this.

Greetings...

Sebastián Calero.


Citado por Kjetil Torgrim Homme <kjetilho@ifi.uio.no>:

> On Thu, 2006-06-15 at 11:43 +0200, Sebas PRE wrote:
>> I would like to create a sieve filter to deliver to a folder all mail with
>> "leído:" in the Subject: header, but it does not work.
>>
>> Sieve does not seem to detect words with accents. Does it exist any 
>> workaround
>> to this problem?
>
> this is a bug in the implementation of Sieve you're using.  I see you're
> using IMP, so it's probably Cyrus.  I myself have had problems with
> non-ASCII not matching in Cyrus IMAPD 2.2.12, but I have never started
> digging for the error.  in any case, that is better discussed on the
> info-cyrus mailing list.
>
> Sieve *does* have a problem with the wildcard '?' matching accented
> letters, or rather, it's very inconvenient to write the script right.
> it doesn't sound like this is your problem, and I guess it's not so
> common to use it for more than
>
>  if header :matches "Subject" [ "Vi?gr?", "V?agr?" ]
>
> :-)
> --
> Kjetil T.
>
>
>
>