Bug#1021614: notmuch: RFC2047-encoded special characters in display-name show up unquoted

Subject: Bug#1021614: notmuch: RFC2047-encoded special characters in display-name show up unquoted

Date: Tue, 11 Oct 2022 22:02:31 +0200

To: submit@bugs.debian.org

Cc:

From: Jakub Wilk


Package: notmuch
Version: 0.37-1

The attached message has a bunch of RFC-2047-encoded special characters 
in the display-name part of the From field:

    $ grep ^From: weird-from.eml
    From: =?UTF-8?Q?=3Cfoo=40example.org=3E=2C?= <bar@example.org>

When you show this message in notmuch, the special characters show up 
unquoted (and unencoded), so that it looks like there are two addresses 
in the From field:

    $ ./notmuch-show-from < weird-from.eml
    From: <foo@example.org>, <bar@example.org>

I initially thought this is a GMime bug, but it seems GMime gets this 
right:

    $ ./gmime-show-from < weird-from.eml
    From: "<foo@example.org>," <bar@example.org>


-- System Information:
Architecture: i386

Versions of packages notmuch depends on:
ii  libnotmuch5     0.37-1
ii  libc6           2.35-3
ii  libglib2.0-0    2.74.0-2
ii  libgmime-3.0-0  3.2.13+dfsg-2
ii  libtalloc2      2.3.4-1
ii  zlib1g          1:1.2.11.dfsg-4.1

-- 
Jakub Wilk
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: