(message-subject-re-regexp): Modify matching pattern.
authorkeiichi <keiichi>
Wed, 3 Jul 2002 08:20:15 +0000 (08:20 +0000)
committerkeiichi <keiichi>
Wed, 3 Jul 2002 08:20:15 +0000 (08:20 +0000)
(message-yank-original): Don't add new Messagd-Id to In-Reply-To field when it
was already exists.

lisp/message.el

index 0f1eeaf..0ca1d75 100644 (file)
@@ -255,7 +255,8 @@ any confusion."
   :group 'message-sending
   :type 'function)
 
-(defcustom message-subject-re-regexp "^[ \t]*\\([Rr][Ee]:[ \t]*\\)*[ \t]*"
+(defcustom message-subject-re-regexp
+  "^[ \t]*\\([Rr][Ee]\\(\\[[0-9]*\\]\\)*:[ \t]*\\)*[ \t]*"
   "*Regexp matching \"Re: \" in the subject line."
   :group 'message-various
   :type 'regexp)
@@ -1961,15 +1962,15 @@ be added to \"References\" field.
                        nil (message-fetch-field "References")))
            (setq in-reply-to (message-list-references
                               nil (message-fetch-field "In-Reply-To")))
-           (when in-reply-to
-             (setq add-in-reply-to t))
            (widen)
            (narrow-to-region start end)
            (std11-narrow-to-header)
            (setq msg-id (message-fetch-field "Message-ID"))
            (setq orig-refs (or (message-fetch-field "References")
                                (message-fetch-field "In-Reply-To")))
-           (setq in-reply-to (message-list-references in-reply-to msg-id))
+           (unless in-reply-to
+             (setq add-in-reply-to t)
+             (setq in-reply-to (message-list-references in-reply-to msg-id)))
            (if (null refs)
                (setq refs (message-list-references nil orig-refs msg-id))
              (when message-yank-add-new-references