Re: I can not filter emails with words with accents

Kjetil Torgrim Homme <kjetilho@ifi.uio.no> Thu, 15 June 2006 10:40 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 k5FAehuX019667; Thu, 15 Jun 2006 03:40:43 -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 k5FAeh1L019666; Thu, 15 Jun 2006 03:40:43 -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 pat.uio.no (IDENT:7411@pat.uio.no [129.240.10.4]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k5FAebjw019630 for <ietf-mta-filters@imc.org>; Thu, 15 Jun 2006 03:40:38 -0700 (MST) (envelope-from kjetilho@ifi.uio.no)
Received: from mail-mx7.uio.no ([129.240.10.52]) by pat.uio.no with esmtp (Exim 4.43) id 1FqpH7-0003Ib-Ev; Thu, 15 Jun 2006 12:40:33 +0200
Received: from mattugur.ifi.uio.no ([129.240.68.168]) by mail-mx7.uio.no with esmtpsa (TLSv1:RC4-MD5:128) (Exim 4.43) id 1FqpH3-0004DU-5w; Thu, 15 Jun 2006 12:40:29 +0200
Subject: Re: I can not filter emails with words with accents
From: Kjetil Torgrim Homme <kjetilho@ifi.uio.no>
To: Sebas PRE <scalero@pre.ddol.es>
Cc: ietf-mta-filters@imc.org
In-Reply-To: <20060615114326.aezr7hs7qcgoos84@mymensajes.pre.ddol.es>
References: <20060615114326.aezr7hs7qcgoos84@mymensajes.pre.ddol.es>
Content-Type: text/plain; charset="ISO-8859-1"
Date: Thu, 15 Jun 2006 12:40:23 +0200
Message-Id: <1150368023.16538.94.camel@mattugur.ifi.uio.no>
Mime-Version: 1.0
X-Mailer: Evolution 2.6.0
X-UiO-Spam-info: not spam, SpamAssassin (score=-4.703, required 12, autolearn=disabled, AWL 0.30, UIO_MAIL_IS_INTERNAL -5.00)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by balder-227.proper.com id k5FAecjw019640
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>

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.