Function: mh-insert-fields
mh-insert-fields is a byte-compiled function defined in mh-comp.el.gz.
Signature
(mh-insert-fields &rest NAME-VALUES)
Documentation
Insert the NAME-VALUES pairs in the current buffer.
If the field exists, append the value to it. Do not insert any pairs whose value is the empty string.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-comp.el.gz
(defun mh-insert-fields (&rest name-values)
"Insert the NAME-VALUES pairs in the current buffer.
If the field exists, append the value to it.
Do not insert any pairs whose value is the empty string."
(let ((case-fold-search t))
(while name-values
(let ((field-name (car name-values))
(value (car (cdr name-values))))
(if (not (string-match "^.*:$" field-name))
(setq field-name (concat field-name ":")))
(cond ((or (null value)
(equal value ""))
nil)
((mh-position-on-field field-name)
(insert " " (or value "")))
(t
(insert field-name " " value "\n")))
(setq name-values (cdr (cdr name-values)))))))