Problem with ImapLib and subject in French

Dieter Maurer dieter at handshake.de
Mon Jun 18 14:02:11 EDT 2012


Valentin Mercier <merciervspam at gmail.com> writes:

> I'm trying to search some mails with SUBJECT criteria, but the problem is the
> encoding, I'm trying to search french terms (impalib and python V2.7)
>
> I've tried few things, but I think the encoding is the problem, in my mail
> header I have something like this:
>
>            =?iso-8859-1?Q?Job:_"Full_Backup_Les_Gr=E8ves_du_Lac")_?=

I would expect that it is the task of the IMap server to handle the
header encoding on its side. Check the description of its search function
how it expects its input: does it want it "header encoded" or in some
other form.


--
Dieter




More information about the Python-list mailing list