unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Richard Stanton <richardhstanton@gmail.com>
To: notmuch@notmuchmail.org
Subject: Carriage returns in subject line cause problems in unthreaded and tree mode
Date: Thu, 16 May 2024 08:47:35 -0700	[thread overview]
Message-ID: <6F2EF901-8B4B-44FF-83C5-22F732BA95A6@gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 620 bytes --]

Today I received an email with (raw) subject line

Subject: =?UTF-8?B?8J+Pi++4jw==?= A SALE to boost your
 =?UTF-8?Q?workout=0D=0A?=

When displayed in Emacs in either unthreaded or tree mode, “^M” appears after the word “workout”, and the displayed line is split into two, like this:

 Today 07:12  Jabra                🏋️ A SALE to boost your workout^M
                       (important inbox)

It would probably be a good idea to check for, and remove, carriage return characters in the subject line.

(Note that the message displays fine in the default threaded mode.)

Richard Stanton


[-- Attachment #1.2: Type: text/html, Size: 1744 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



             reply	other threads:[~2024-05-16 15:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-16 15:47 Richard Stanton [this message]
2024-05-18 10:07 ` Carriage returns in subject line cause problems in unthreaded and tree mode Tomi Ollila
2024-08-06 11:36   ` David Bremner
2024-05-20 11:58 ` [PATCH 1/4] test: re-enable duplicate UI tests in T460-emacs-tree David Bremner
2024-05-20 11:58   ` [PATCH 2/4] test/emacs-show: add regression test for subjects with CR/NL David Bremner
2024-05-20 11:58   ` [PATCH 3/4] test/emacs-tree: add known broken test for subject " David Bremner
2024-05-20 11:58   ` [PATCH 4/4] emacs/tree: sanitize subjects when drawing tree David Bremner
2024-05-29 10:41   ` [PATCH 1/4] test: re-enable duplicate UI tests in T460-emacs-tree David Bremner

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=6F2EF901-8B4B-44FF-83C5-22F732BA95A6@gmail.com \
    --to=richardhstanton@gmail.com \
    --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).