1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-03 06:00:50 -08:00

Ensure that `mail-send' breaks too-long lines

* lisp/mail/sendmail.el (mail-send): Ensure that we fold too-long
lines when using `sendmail-user-agent' (bug#53412).
This commit is contained in:
Lars Ingebrigtsen 2022-02-20 13:41:57 +01:00
parent 06b7c53927
commit f0b4f2ee6b

View file

@ -955,7 +955,10 @@ the user from the mailer."
(error "Invalid header line (maybe a continuation line lacks initial whitespace)"))
(forward-line 1)))
(goto-char opoint)
(when mail-encode-mml
(when (or mail-encode-mml
;; When we have long lines, we have to MIME encode
;; to get line folding.
(mm-long-lines-p 1000))
(mml-to-mime)
(setq mail-encode-mml nil))
(run-hooks 'mail-send-hook)