* wl-draft.el (wl-draft-self-reply-p): New function.
authorkaoru <kaoru>
Fri, 10 Jan 2003 19:51:47 +0000 (19:51 +0000)
committerkaoru <kaoru>
Fri, 10 Jan 2003 19:51:47 +0000 (19:51 +0000)
(wl-draft-reply-list-symbol): Use it.

wl/ChangeLog
wl/wl-draft.el

index 590c797..a306ff8 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-10  TAKAHASHI Kaoru  <kaoru@kaisei.org>
+
+       * wl-draft.el (wl-draft-self-reply-p): New function.
+       (wl-draft-reply-list-symbol): Use it.
+
 2003-01-10  Masahiro Murata  <muse@ba2.so-net.ne.jp>
 
        * wl-draft.el (wl-draft-reedit): Avoid error on Meadow [wl:11209].
index 88b7897..bcb09bd 100644 (file)
@@ -313,10 +313,14 @@ e.g.
       (substring subject (match-end 0))
     subject))
 
+(defun wl-draft-self-reply-p ()
+  "Return t when From address in the current message is user's self one or not."
+  (wl-address-user-mail-address-p (or (elmo-field-body "From") "")))
+
 (defun wl-draft-reply-list-symbol (with-arg)
   "Return symbol `wl-draft-reply-*-argument-list' match condition.
 Check WITH-ARG and From: field."
-  (if (wl-address-user-mail-address-p (or (elmo-field-body "From") ""))
+  (if (wl-draft-self-reply-p)
       (if with-arg
          'wl-draft-reply-myself-with-argument-list
        'wl-draft-reply-myself-without-argument-list)