(forward-line 1)
(unless (y-or-n-p "Send anyway? ")
(error "Failed to send the message")))))
- ;; Fold too-long header lines. They should be no longer than
- ;; 998 octets long.
(message--fold-long-headers)
;; Let the user do all of the above.
(run-hooks 'message-header-hook))
(push 'mail message-sent-message-via)))
(defun message--fold-long-headers ()
+ "Fold too-long header lines.
+They should be no longer than 998 octets long."
(goto-char (point-min))
(while (not (eobp))
(when (and (looking-at "[^:]+:")
- (> (- (line-end-position) (point)) 998))
+ (> (- (line-end-position) (point)) 998))
(mail-header-fold-field))
(forward-line 1)))