diff options
| -rw-r--r-- | lisp/gnus/message.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index d3f6ec3c34e..4da5565a523 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -4536,8 +4536,6 @@ This function could be useful in `message-setup-hook'." | |||
| 4536 | (forward-line 1) | 4536 | (forward-line 1) |
| 4537 | (unless (y-or-n-p "Send anyway? ") | 4537 | (unless (y-or-n-p "Send anyway? ") |
| 4538 | (error "Failed to send the message"))))) | 4538 | (error "Failed to send the message"))))) |
| 4539 | ;; Fold too-long header lines. They should be no longer than | ||
| 4540 | ;; 998 octets long. | ||
| 4541 | (message--fold-long-headers) | 4539 | (message--fold-long-headers) |
| 4542 | ;; Let the user do all of the above. | 4540 | ;; Let the user do all of the above. |
| 4543 | (run-hooks 'message-header-hook)) | 4541 | (run-hooks 'message-header-hook)) |
| @@ -4637,10 +4635,12 @@ If you always want Gnus to send messages in one piece, set | |||
| 4637 | (push 'mail message-sent-message-via))) | 4635 | (push 'mail message-sent-message-via))) |
| 4638 | 4636 | ||
| 4639 | (defun message--fold-long-headers () | 4637 | (defun message--fold-long-headers () |
| 4638 | "Fold too-long header lines. | ||
| 4639 | They should be no longer than 998 octets long." | ||
| 4640 | (goto-char (point-min)) | 4640 | (goto-char (point-min)) |
| 4641 | (while (not (eobp)) | 4641 | (while (not (eobp)) |
| 4642 | (when (and (looking-at "[^:]+:") | 4642 | (when (and (looking-at "[^:]+:") |
| 4643 | (> (- (line-end-position) (point)) 998)) | 4643 | (> (- (line-end-position) (point)) 998)) |
| 4644 | (mail-header-fold-field)) | 4644 | (mail-header-fold-field)) |
| 4645 | (forward-line 1))) | 4645 | (forward-line 1))) |
| 4646 | 4646 | ||