From: Lars Ingebrigtsen <larsi@gnus.org>
To: Pieter van Oostrum <pieter@vanoostrum.org>
Cc: 38955@debbugs.gnu.org
Subject: bug#38955: 27.0.50; message-send-mail fails on non-printable characters in header
Date: Thu, 20 Aug 2020 16:39:08 +0200 [thread overview]
Message-ID: <87a6yptm9f.fsf@gnus.org> (raw)
In-Reply-To: <24082.16916.256529.892269@cochabamba.vanoostrum.org> (Pieter van Oostrum's message of "Sun, 5 Jan 2020 21:07:48 +0100")
Pieter van Oostrum <pieter@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@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
prev parent reply other threads:[~2020-08-20 14:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-05 20:07 bug#38955: 27.0.50; message-send-mail fails on non-printable characters in header Pieter van Oostrum
2020-08-20 14:39 ` Lars Ingebrigtsen [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a6yptm9f.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=38955@debbugs.gnu.org \
--cc=pieter@vanoostrum.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.