GNU bug report logs - #38955
27.0.50; message-send-mail fails on non-printable characters in header

Previous Next

Package: emacs;

Reported by: Pieter van Oostrum <pieter <at> vanoostrum.org>

Date: Sun, 5 Jan 2020 20:09:02 UTC

Severity: normal

Tags: fixed

Found in version 27.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 38955 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Pieter van Oostrum <pieter <at> vanoostrum.org>
Cc: 38955 <at> debbugs.gnu.org
Subject: Re: bug#38955: 27.0.50; message-send-mail fails on non-printable
 characters in header
Date: Thu, 20 Aug 2020 16:39:08 +0200
Pieter van Oostrum <pieter <at> vanoostrum.org> writes:

> 1) Reply to the attached email message in gnus.
> 2) Send the message (C-c C-c)
>
> Emacs gives an error
> cl--assertion-failed: Assertion failed: (save-excursion (goto-char (point-min)) (not (re-search-forward "[^.-ΓΏ]" nil t)))
> which isn't helpful at all.

[...]

> The error is caused by a header with unprintable characters. The raw header is:
> To: =?iso-8859-1?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson
>  <jidanni <at> jidanni.org>
> which translates to unprintable characters.

[...]

> I propose that the same choice is given to the user when these
> characters appear in the header. This means the test should also be
> done in message-fix-before-sending().

I've now done this in Emacs 28.

> Another suggestion: Can an additional choice be given to replace the
> offending characters with an escaped representation, for example url
> encoding?

Yeah, that makes sense.  Perhaps URL encoding is the most widely
understood (i.e., %hex for the byte).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 334 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.