(function . args) nor (string . something) any more.
* wl-version.el (wl-generate-user-agent-string): Return string
without header symbol.
* wl-draft.el (wl-draft-default-headers): Use it.
2002-03-24 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
+ * wl-draft.el (wl-draft-create-contents): Don't take neither
+ (function . args) nor (string . something) any more.
+
+ * wl-version.el (wl-generate-user-agent-string): Return string
+ without header symbol.
+ * wl-draft.el (wl-draft-default-headers): Use it.
+
* wl-draft.el (wl-draft-trim-ccs): Renamed from
`wl-draft-insert-ccs' and return field value instead of inserting
the header. Abolish cc argument.
(symbol . string) ;; insert symbol-value: string
(symbol . function) ;; (funcall) and if it returns string,
;; insert symbol-value: string
- (symbol . nil) ;; insert nothing
- (function . (arg1 arg2 ..)) ;; call function with argument
- nil ;; insert nothing
+ (symbol . nil) ;; do nothing
+ nil ;; do nothing
)
"
(unless (eq major-mode 'wl-draft-mode)
(setq field (car (car halist)))
(setq value (cdr (car halist)))
(cond
- ((functionp field) (apply field value))
((symbolp field)
(cond
((stringp value) (insert (symbol-name field) ": " value "\n"))
((not value))
(t
(debug))))
- ((stringp field)
- (cond
- ((stringp value) (insert field value "\n"))
- ((functionp value)
- (let ((value-return (funcall value)))
- (when (stringp value-return)
- (insert field value-return "\n"))))
- ((not value))
- (t
- (debug))))
;;
((not field))
(t
(cons 'Mail-Reply-To (and wl-insert-mail-reply-to
(wl-address-header-extract-address
wl-from)))
- (cons "" wl-generate-mailer-string-function)
+ (cons 'User-Agent wl-generate-mailer-string-function)
(cons 'Reply-To mail-default-reply-to)
(cons 'Bcc (function
(lambda ()
(defun wl-generate-user-agent-string ()
"A candidate of `wl-generate-mailer-string-function'.
Insert User-Agent field instead of X-Mailer field."
- (concat "User-Agent: "
- (wl-generate-user-agent-string-1
- ;; for backward compatibility
- (and (boundp 'mime-edit-insert-user-agent-field)
- mime-edit-insert-user-agent-field))))
+ (wl-generate-user-agent-string-1
+ ;; for backward compatibility
+ (and (boundp 'mime-edit-insert-user-agent-field)
+ mime-edit-insert-user-agent-field)))
(defun wl-generate-user-agent-string-1 (&optional verbose)
"Return User-Agent field value.