unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Francesco Potortì" <pot@gnu.org>
To: 53412@debbugs.gnu.org
Subject: bug#53412: wrappin text lines is not enough, headers shoould be split too
Date: Mon, 07 Mar 2022 13:35:52 +0100	[thread overview]
Message-ID: <877d96os7r.fsf@tucano.isti.cnr.it> (raw)
In-Reply-To: <87r19186gw.fsf@tucano.isti.cnr.it>

I just discovered that checking overlong text lines is not enough.

Apparently calling mml-to-mime is not enough when the overlong line is a header.

If there is an overlong header, other headers which are utf-8 escaped are not sent correctly, and the recipent sees something like this:

Subject: test =?utf-8?Q?=C3=A0?= b c
 =?utf-8?Q?=C3=AC?=

RFC 5322 mandates header line lengths less than 998, including CRLF, and this is apparently not enforced by mml-to-mime.  Sending an identical email with long headers split into several lines makes the problem disappear.

I do not know where the culprit is and I do not have a workaround :(





  parent reply	other threads:[~2022-03-07 12:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-21 15:16 bug#53412: 27.1; sendmail does not wrap overlong lines Francesco Potortì
2022-01-21 19:24 ` Eli Zaretskii
2022-02-20 12:42 ` Lars Ingebrigtsen
2022-03-07 12:35 ` Francesco Potortì [this message]
2022-03-07 13:11 ` bug#53412: wrappin text lines is not enough, headers shoould be split too Francesco Potortì
2022-03-07 15:38   ` Lars Ingebrigtsen
2022-03-07 15:48     ` Francesco Potortì
2022-03-07 15:57       ` Lars Ingebrigtsen
2022-03-07 17:27         ` Andreas Schwab
2022-03-07 17:31           ` Lars Ingebrigtsen
2022-03-07 17:36           ` Francesco Potortì

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://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877d96os7r.fsf@tucano.isti.cnr.it \
    --to=pot@gnu.org \
    --cc=53412@debbugs.gnu.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://git.savannah.gnu.org/cgit/emacs.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).