Function: mml-secure-message
mml-secure-message is a byte-compiled function defined in
mml-sec.el.gz.
Signature
(mml-secure-message METHOD &optional MODESYM)
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/mml-sec.el.gz
;; defuns that add the proper <#secure ...> tag to the top of the message body
(defun mml-secure-message (method &optional modesym)
(let ((mode (prin1-to-string modesym))
(tags (append
(if (or (eq modesym 'sign)
(eq modesym 'signencrypt))
(funcall (nth 2 (assoc method mml-sign-alist))))
(if (or (eq modesym 'encrypt)
(eq modesym 'signencrypt))
(funcall (nth 2 (assoc method mml-encrypt-alist))))))
insert-loc)
(mml-unsecure-message)
(save-excursion
(goto-char (point-min))
(cond ((re-search-forward
(concat "^" (regexp-quote mail-header-separator) "\n") nil t)
(goto-char (setq insert-loc (match-end 0)))
(unless (looking-at "<#secure")
(apply #'mml-insert-tag
'secure 'method method 'mode mode tags)))
(t (error
"The message is corrupted. No mail header separator"))))
(when (eql insert-loc (point))
(forward-line 1))))