From: David Bremner Date: Tue, 23 Jul 2013 11:39:54 +0000 (+2100) Subject: Re: UTF-8 in mail headers (namely FROM) sent by bugzilla X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1c0b1d22518cc3c9bab1cbf6ae6ca8d4825261c4;p=notmuch-archives.git Re: UTF-8 in mail headers (namely FROM) sent by bugzilla --- diff --git a/42/f52a7399c89d17883f14c65dfbc1a75e1df57a b/42/f52a7399c89d17883f14c65dfbc1a75e1df57a new file mode 100644 index 000000000..517feca8a --- /dev/null +++ b/42/f52a7399c89d17883f14c65dfbc1a75e1df57a @@ -0,0 +1,70 @@ +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 BC618431FB6 + for ; Tue, 23 Jul 2013 04:40:07 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 PfyLgOC4hZ0Z for ; + Tue, 23 Jul 2013 04:40:01 -0700 (PDT) +Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 9BB81431FBC + for ; Tue, 23 Jul 2013 04:40:01 -0700 (PDT) +Received: from remotemail by yantan.tethera.net with local (Exim 4.80) + (envelope-from ) + id 1V1awg-0007o1-Ix; Tue, 23 Jul 2013 08:39:58 -0300 +Received: (nullmailer pid 27128 invoked by uid 1000); Tue, 23 Jul 2013 + 11:39:54 -0000 +From: David Bremner +To: Franz Fellner , notmuch@notmuchmail.org +Subject: Re: UTF-8 in mail headers (namely FROM) sent by bugzilla +In-Reply-To: <5712cc41-d0ce-4ed3-af1c-37cf639dd9c0@gmail.com> +References: <08cb1dcd-c5db-4e33-8b09-7730cb3d59a2@gmail.com> + <871u6psjwr.fsf@ericabrahamsen.net> + <5712cc41-d0ce-4ed3-af1c-37cf639dd9c0@gmail.com> +User-Agent: Notmuch/0.15.2+224~g1fd1e57 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Tue, 23 Jul 2013 08:39:54 -0300 +Message-ID: <87y58xv71x.fsf@zancas.localnet> +MIME-Version: 1.0 +Content-Type: text/plain +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: Tue, 23 Jul 2013 11:40:07 -0000 + +Franz Fellner 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. + +d +