From 7b03be0e578ddb07296a1b9521b6e48ce96a197b Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Wed, 24 Jul 2013 14:44:56 +0800 Subject: [PATCH] Re: UTF-8 in mail headers (namely FROM) sent by bugzilla --- b4/e30430395fccc130c5e24e75e494bd0448705e | 89 +++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 b4/e30430395fccc130c5e24e75e494bd0448705e diff --git a/b4/e30430395fccc130c5e24e75e494bd0448705e b/b4/e30430395fccc130c5e24e75e494bd0448705e new file mode 100644 index 000000000..3daba65af --- /dev/null +++ b/b4/e30430395fccc130c5e24e75e494bd0448705e @@ -0,0 +1,89 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 9D169431FBC + for ; Tue, 23 Jul 2013 23:44:42 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.865 +X-Spam-Level: +X-Spam-Status: No, score=0.865 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_NONE=-0.0001, RCVD_NUMERIC_HELO=0.865] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id XgxsP5evrEqc for ; + Tue, 23 Jul 2013 23:44:37 -0700 (PDT) +Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) + (using TLSv1 with cipher AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 57B51431FB6 + for ; Tue, 23 Jul 2013 23:44:37 -0700 (PDT) +Received: from list by plane.gmane.org with local (Exim 4.69) + (envelope-from ) id 1V1soM-0002Oq-W1 + for notmuch@notmuchmail.org; Wed, 24 Jul 2013 08:44:34 +0200 +Received: from 114.250.130.112 ([114.250.130.112]) + by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) + id 1AlnuQ-0007hv-00 + for ; Wed, 24 Jul 2013 08:44:34 +0200 +Received: from eric by 114.250.130.112 with local (Gmexim 0.1 (Debian)) + id 1AlnuQ-0007hv-00 + for ; Wed, 24 Jul 2013 08:44:34 +0200 +X-Injected-Via-Gmane: http://gmane.org/ +To: notmuch@notmuchmail.org +From: Eric Abrahamsen +Subject: Re: UTF-8 in mail headers (namely FROM) sent by bugzilla +Date: Wed, 24 Jul 2013 14:44:56 +0800 +Lines: 26 +Message-ID: <878v0wqwwn.fsf@ericabrahamsen.net> +References: <08cb1dcd-c5db-4e33-8b09-7730cb3d59a2@gmail.com> + <871u6psjwr.fsf@ericabrahamsen.net> + <5712cc41-d0ce-4ed3-af1c-37cf639dd9c0@gmail.com> +Mime-Version: 1.0 +Content-Type: text/plain +X-Complaints-To: usenet@ger.gmane.org +X-Gmane-NNTP-Posting-Host: 114.250.130.112 +User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) +Cancel-Lock: sha1:lWwSRt8mIAHHPagJzibMwDGHdzU= +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 24 Jul 2013 06:44:42 -0000 + +Franz Fellner +writes: + +> On Dienstag, 23. Juli 2013 11:30:28 CEST, Eric Abrahamsen wrote: +>>> I have a problem with notmuch-vim (now: git master from 10 min. ago) +>>> (also with alot and ner, not with 'notmuch show' or notmuch-emacs). +>>> UTF-8-encoded From: (at least) does not show Umlauts but a weird +>>> encoded-string. ... +>> +>> Looks like rfc 2047, which is a way of encoding non-ASCII characters in +>> message headers. Gmail does the same thing, and I've had to work around +>> that in emacs/gnus. +>> +>> http://www.ietf.org/rfc/rfc2047.txt +> +> 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). + +The version of gnus I'm using (git) comes with a rfc2047.el file, with +all the appropriate functions. That might be of interest, even if the +solution ends up being in the basic library... + +http://git.gnus.org/cgit/gnus.git/tree/lisp/rfc2047.el + -- 2.26.2