+2001-07-31 TAKAHASHI Kaoru <kaoru@kaisei.org>
+
+ * mime-edit.el (mime-edit-translate-body): Revert; insert
+ User-Agent field.
+ (mime-edit-insert-user-agent-field): Revert docstring.
+
2001-06-28 TAKAHASHI Kaoru <kaoru@kaisei.org>
* mime-edit.el (mime-edit-translate-body): Don't insert User-Agent
;;;
(defcustom mime-edit-insert-user-agent-field nil
- "*If non-nil, some MUA makes verbose User-Agent header field."
+ "*If non-nil, insert User-Agent header field."
:group 'mime-edit
:type 'boolean)
(let ((contype (car ret)) ;Content-Type
(encoding (nth 1 ret)) ;Content-Transfer-Encoding
)
+ ;; Insert User-Agent field
+ (and mime-edit-insert-user-agent-field
+ (or (mail-position-on-field "User-Agent")
+ (insert mime-edit-user-agent-value)))
;; Make primary MIME headers.
(or (mail-position-on-field "MIME-Version")
(insert mime-edit-mime-version-value))