* wl-version.el (wl-generate-user-agent-string-1): Ignore
authorkaoru <kaoru>
Wed, 18 Oct 2000 08:12:48 +0000 (08:12 +0000)
committerkaoru <kaoru>
Wed, 18 Oct 2000 08:12:48 +0000 (08:12 +0000)
`mime-edit-insert-user-agent-field'.
(wl-generate-user-agent-string): Check
`mime-edit-insert-user-agent-field' and `mime-editor/version'.

wl/ChangeLog
wl/wl-version.el

index fe0169a..6b58387 100644 (file)
        * wl-version.el (wl-generate-user-agent-string-1): New function.
        (wl-generate-user-agent-string): Use it.
 
+       * wl-version.el (wl-generate-user-agent-string-1): Ignore
+       `mime-edit-insert-user-agent-field'.
+       (wl-generate-user-agent-string): Check
+       `mime-edit-insert-user-agent-field' and `mime-editor/version'.
+
 2000-10-18  Kenichi OKADA  <okada@opaopa.org>
 
        * wl-expire.el (wl-summary-expire): Fix.
index 1a6d6c5..ef637b3 100644 (file)
@@ -90,13 +90,17 @@ If ARG insert string at point."
 (defun wl-generate-user-agent-string ()
   "A candidate of `wl-generate-mailer-string-func'.
 Insert User-Agent field instead of X-Mailer field."
-  (concat "User-Agent: " (wl-generate-user-agent-string-1 t)))
+  (concat "User-Agent: "
+         (wl-generate-user-agent-string-1
+          (or (and (boundp 'mime-edit-insert-user-agent-field)
+                   mime-edit-insert-user-agent-field)
+              (and (boundp 'mime-editor/version)
+                   mime-editor/version)))))
 
 (defun wl-generate-user-agent-string-1 (&optional verbose)
   "Return User-Agent field value.
 If VERBOSE return with SEMI, FLIM and APEL version"
-  (let ((mime-user-agent (and (boundp 'mime-edit-insert-user-agent-field)
-                             mime-edit-insert-user-agent-field
+  (let ((mime-user-agent (and (boundp 'mime-edit-insert-user-agent-value)
                              mime-edit-user-agent-value)))
     (if (and verbose mime-user-agent)
        (concat (product-string-verbose 'wl-version) " "