From: David Bremner <david@tethera.net>
To: Emmanuel Beffara <manu@beffara.org>, notmuch@notmuchmail.org
Subject: Re: bug: subject line with several chunks of base64
Date: Fri, 09 Dec 2022 07:22:57 -0400 [thread overview]
Message-ID: <87r0x8es8e.fsf@tethera.net> (raw)
In-Reply-To: <20221208230226.GJ2433@beffara.org>
Emmanuel Beffara <manu@beffara.org> writes:
> Hello,
>
> I am stumbling upon what looks to be a bug.
>
> Sometimes I receive messages where a header entry consists of several chunks
> of base64-encoded quoted utf-8 text. For instance:
>
> Subject: =?UTF-8?B?dGhpcyBpcyBqdXN0IGFuIGV4YW1wbGUgZm9yIGRlbW9uc3RyYXRpb24gcHVycA==?= =?UTF-8?B?b3Nlcw==?=
>
> For such input, `notmuch search` and `notmuch show` (whatever the output
> format) consider only the first block as part of the subject, the second block
> is ignored. Apparently, this happens when the first block is padded with =
> signs as in my example, not when the base64 encoded part is full.
>
This looks like the same bug as discussed at
https://nmbug.notmuchmail.org/nmweb/show/87wn9w4xus.fsf@thb.lt
It turns out to be a bug in the GMime library, fixed upstream:
https://github.com/jstedfast/gmime/commit/1a33a55baafc73b0
As far as I know that's not part of any GMime release yet.
prev parent reply other threads:[~2022-12-09 11:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-08 22:02 bug: subject line with several chunks of base64 Emmanuel Beffara
2022-12-09 11:22 ` David Bremner [this message]
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=87r0x8es8e.fsf@tethera.net \
--to=david@tethera.net \
--cc=manu@beffara.org \
--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).