Re: Different encodings at index and pager views
- To: mutt-users@xxxxxxxx
- Subject: Re: Different encodings at index and pager views
- From: Carlos Pita <carlosjosepita@xxxxxxxxx>
- Date: Thu, 26 Feb 2009 22:55:42 -0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=e08b/70BuhKEp98shWeLTTcTP44Or9sQlEQt4F/jgIA=; b=hFKKylISdVPiX4DJwArMKT0UnE2wNfLvyTDAynvazjDdWZ5pCbkVuUdSTRJoULTpLw OqKkLiLxdBGYgaT9K5eRXS4n7hM8+araYN6YIMU8E5UkVs7dV1Dm4T/xfpUKf1jqVrvl yl9sPcCZp+VAw0Bkis3KmzvE62IuorGYk1PeI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=m8L9vlXsV+21S3Apq6tBJQDZ8kASWY+WrNyrC4I0f7+LbFyTEFOmlnd07OGtO2kWV4 gAumXDqWdGCLFfwOT10+9di+Kamy+0/aCfXxq6dsl9mzIS5eWshPptRqNdan5s+yWb2o HqHHXhC3CK8wnkL/V7hXyNgDC6YVBvH+NWp4k=
- In-reply-to: <20090226235414.GB7289@xxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- References: <20090226220720.GA12471@carlos> <20090226235414.GB7289@xxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
> This is probably a gmail bug:
> http://dev.mutt.org/trac/ticket/2997
I knew about that bug, I've even experienced it, but I can't find the
relation with the problem I'm describing now. The headers in question
are correctly utf-8 or latin-1 encoded, there is no trace of rfc 2047
encoding, be it right o wrong done.
If I edit the raw utf-8 email and my locale is also utf-8, the subject
header looks as expected.
If I edit the raw latin-1 email and my locale is also latin-1, the
subject header looks as expected.
I get the same results if I edit the raw mails from gmail and change
the encoding of my browser.
So my conclusion is that encoding is fine. Sure it's not rfc 2047 as
it should, but it's perfectly legal utf-8 or latin-1 depending on
case.
And I remark that the effective encoding of both emails matches the
one given by the Content-type header, in one case at the only part and
in the other (the one that presents the problem) at one of its
multiple parts (the text/plain one).
Again, setting assumed_charset=iso-8859-1 and cleaning the header
cache don't fix the issue.
If it were to blame gmail, the only sensible explanation that comes to
my mind is that their imap server has limitations to serve latin-1
encoded emails headers (only the headers, not the entire mail), and
replacement with qmarks happens during some encoding conversion that
takes place at their place. Sounds unlikely, but as I've not sniffed
the actual contents of imap conversation I can't deny it for sure.
Best regards
-Carlos