From: Thibault Polge <thibault@thb.lt>
To: notmuch@notmuchmail.org
Subject: Possible bug: incorrect processing of multipart, base64-encoded subject lines.
Date: Wed, 21 Sep 2022 16:15:55 +0200 [thread overview]
Message-ID: <87wn9w4xus.fsf@thb.lt> (raw)
Hi all,
Notmuch doesn't parse correctly some Subject lines consisting of
multiple base64-encoded snippets. As an example, this is the raw
subject line of an e-mail from Amazon:
Subject: =?UTF-8?B?TGl2cmFpc29uIHByw6l2dWUgcG91ciBhdWpvdXJk4oCZaHU=?=
=?UTF-8?B?aTogUkVTVFJBUCBTYWRkbGUgQmFnIFNhY2NvY2hlLi4u?=
Notmuch displays the subject as only the decoded contents of the first
fragment (or first line), "Livraison prévue pour aujourd’hu", fully
ignoring the second base64 fragment, "i: RESTRAP Saddle Bag
Saccoche...". The complete subject line should thus read:
> Livraison prévue pour aujourd’hui: RESTRAP Saddle Bag Saccoche...
Regards,
Thibault\r
next reply other threads:[~2022-09-22 10:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-21 14:15 Thibault Polge [this message]
2022-09-23 23:48 ` [PATCH] test: add regression test for Subject with newline David Bremner
2022-10-10 21:24 ` David Bremner
2022-12-27 15:50 ` David Bremner
2022-10-14 14:49 ` Possible bug: incorrect processing of multipart, base64-encoded subject lines Jakub Wilk
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=87wn9w4xus.fsf@thb.lt \
--to=thibault@thb.lt \
--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).