diff options
| author | Lars Ingebrigtsen | 2018-04-16 13:58:39 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2018-04-16 13:58:39 +0200 |
| commit | e1a0cbbcf8389c76f67048e69139b5b0adf2cf38 (patch) | |
| tree | ab2a3e396136d72c3d0f80792f6211f464dd5fd7 | |
| parent | 6ec3ec7fbec2c04d5e9570b0470217cd97e5e7e6 (diff) | |
| download | emacs-e1a0cbbcf8389c76f67048e69139b5b0adf2cf38.tar.gz emacs-e1a0cbbcf8389c76f67048e69139b5b0adf2cf38.zip | |
Make mail-sendmail-undelimit-header actually remove the delimiter
* lisp/mail/sendmail.el (mail-sendmail-undelimit-header): Actually
remove the mail header separator (bug#17488). In all the cases
where this is called, the separator will probably already have
been removed, so the only thing this does is place point at the
end of the headers.
| -rw-r--r-- | lisp/mail/sendmail.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index c9f8fec1e1b..ab6ac4b1885 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -784,8 +784,10 @@ Concretely: replace the first blank line in the header with the separator." | |||
| 784 | (defun mail-sendmail-undelimit-header () | 784 | (defun mail-sendmail-undelimit-header () |
| 785 | "Remove header separator to put the message in correct form for sendmail. | 785 | "Remove header separator to put the message in correct form for sendmail. |
| 786 | Leave point at the start of the delimiter line." | 786 | Leave point at the start of the delimiter line." |
| 787 | (rfc822-goto-eoh) | 787 | (goto-char (point-min)) |
| 788 | (delete-region (point) (progn (end-of-line) (point)))) | 788 | (when (re-search-forward (concat "^" (regexp-quote mail-header-separator) "\n")) |
| 789 | (replace-match "\n")) | ||
| 790 | (rfc822-goto-eoh)) | ||
| 789 | 791 | ||
| 790 | (defun mail-mode-auto-fill () | 792 | (defun mail-mode-auto-fill () |
| 791 | "Carry out Auto Fill for Mail mode. | 793 | "Carry out Auto Fill for Mail mode. |