From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: David Bremner <david@tethera.net>
Cc: notmuch@notmuchmail.org
Subject: Re: UTF-8 in mail headers (namely FROM) sent by bugzilla
Date: Mon, 29 Jul 2013 15:46:50 -0400 [thread overview]
Message-ID: <51F6C6AA.7010001@fifthhorseman.net> (raw)
In-Reply-To: <87y58xv71x.fsf@zancas.localnet>
[-- Attachment #1: Type: text/plain, Size: 1759 bytes --]
On 07/23/2013 07:39 AM, David Bremner wrote:
> Franz Fellner <alpine.art.de@gmail.com> writes:
>
>>
>> OK, thx. So every app needs to get patched to display those strings
>> properly? Any chance this could be done directly in libnotmuch? I
>> grepped for "2047" inside te "emacs" subtree, but found nothing (had
>> the hope for a comment for the workaround). Would be interesting to
>> see how this is done, so I can at least try to create a patch (though
>> my ruby is quite basic).
>
> In general notmuch relies on libgmime for rfc2047 parsing. I'm not sure
> of all the details now, but some of the filtering does happen in the
> CLI, not the lib. You could start by looking at
> gmime-filter-headers.[ch] in the top directory.
I agree this should be handled properly by gmime. If it turns out that
the library is misbehaving (i.e. that notmuch is using it sensibly and
we're still getting bad data out of well-formed strings), it should be
reported and fixed there.
Just a note that other MUAs are struggling with this sort of thing too:
http://blog.steve.org.uk/international_character_sets_and_encodings_are_hard_.html
Steve Kemp (author of lumail) has good engineering skills and instincts;
anyone actively working on trying to get this fixed "right" within
notmuch (or underlying libraries) could probably drop him an e-mail and
collaborate. With a decent diagnostic of the specific problems and use
cases, plus a recommendation for where the fix should be and how it
should be done, the two projects together could probably exert
sufficient influence on underlying libraries and toolchains to get them
to address any issues.
sorry to just provide links and not any actual analysis and code.
--dkg
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 1027 bytes --]
next prev parent reply other threads:[~2013-07-29 19:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-23 8:55 UTF-8 in mail headers (namely FROM) sent by bugzilla Franz Fellner
2013-07-23 9:30 ` Eric Abrahamsen
2013-07-23 10:55 ` Franz Fellner
2013-07-23 11:39 ` David Bremner
2013-07-26 10:16 ` Jani Nikula
2013-07-29 19:46 ` Daniel Kahn Gillmor
2013-07-29 19:46 ` Daniel Kahn Gillmor [this message]
2013-07-24 6:44 ` Eric Abrahamsen
2013-10-05 10:43 ` Jani Nikula
2013-10-05 13:38 ` Daniel Kahn Gillmor
[not found] <289881190.1977918.1376058260231.JavaMail.root@sz0152a.westchester.pa.mail.comcast.net>
2013-08-09 18:04 ` Jani Nikula
2013-08-09 18:38 ` Jeffrey Stedfast
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51F6C6AA.7010001@fifthhorseman.net \
--to=dkg@fifthhorseman.net \
--cc=david@tethera.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).