Function: nnmail-check-syntax

nnmail-check-syntax is a byte-compiled function defined in nnmail.el.gz.

Signature

(nnmail-check-syntax)

Documentation

Check (and modify) the syntax of the message in the current buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/nnmail.el.gz
(defun nnmail-check-syntax ()
  "Check (and modify) the syntax of the message in the current buffer."
  (save-restriction
    (message-narrow-to-head)
    (let ((case-fold-search t))
      (unless (re-search-forward "^Message-ID[ \t]*:" nil t)
	(insert "Message-ID: " (nnmail-message-id) "\n")))))