aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mail
diff options
context:
space:
mode:
authorLars Ingebrigtsen2022-02-20 13:41:57 +0100
committerLars Ingebrigtsen2022-02-20 13:41:57 +0100
commitf0b4f2ee6bbef2ea4596568703e1f267eb4a46aa (patch)
treeaa94a85eeaa0d5030faff4bf462dce8d9ee3bb34 /lisp/mail
parent06b7c53927b983764a7174b7edbb51832b21fbc8 (diff)
downloademacs-f0b4f2ee6bbef2ea4596568703e1f267eb4a46aa.tar.gz
emacs-f0b4f2ee6bbef2ea4596568703e1f267eb4a46aa.zip
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).
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/sendmail.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 76c3baf4727..0d3eeecd8c8 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -955,7 +955,10 @@ the user from the mailer."
955 (error "Invalid header line (maybe a continuation line lacks initial whitespace)")) 955 (error "Invalid header line (maybe a continuation line lacks initial whitespace)"))
956 (forward-line 1))) 956 (forward-line 1)))
957 (goto-char opoint) 957 (goto-char opoint)
958 (when mail-encode-mml 958 (when (or mail-encode-mml
959 ;; When we have long lines, we have to MIME encode
960 ;; to get line folding.
961 (mm-long-lines-p 1000))
959 (mml-to-mime) 962 (mml-to-mime)
960 (setq mail-encode-mml nil)) 963 (setq mail-encode-mml nil))
961 (run-hooks 'mail-send-hook) 964 (run-hooks 'mail-send-hook)