@ -304,8 +304,9 @@ separator is never written to the message file. Also see
|
|||||||
(if (search-forward-regexp "^$" nil t)
|
(if (search-forward-regexp "^$" nil t)
|
||||||
(progn
|
(progn
|
||||||
(replace-match sepa)
|
(replace-match sepa)
|
||||||
;; `message-narrow-to-headers` searches for a `mail-header-separator` followed by a new
|
;; `message-narrow-to-headers` searches for a
|
||||||
;; line. Therefore, we must insert a newline if on the last line of the buffer.
|
;; `mail-header-separator` followed by a new line. Therefore, we
|
||||||
|
;; must insert a newline if on the last line of the buffer.
|
||||||
(when (= (point) (point-max))
|
(when (= (point) (point-max))
|
||||||
(insert "\n")))
|
(insert "\n")))
|
||||||
(progn ;; no empty line? then prepend one
|
(progn ;; no empty line? then prepend one
|
||||||
@ -347,6 +348,7 @@ You can append flags."
|
|||||||
(let* ((sysname (if (fboundp 'system-name)
|
(let* ((sysname (if (fboundp 'system-name)
|
||||||
(system-name)
|
(system-name)
|
||||||
(with-no-warnings system-name)))
|
(with-no-warnings system-name)))
|
||||||
|
(sysname (if (string= sysname "") "localhost" sysname))
|
||||||
(hostname (downcase
|
(hostname (downcase
|
||||||
(save-match-data
|
(save-match-data
|
||||||
(substring sysname
|
(substring sysname
|
||||||
|
|||||||
Reference in New Issue
Block a user