+2000-10-07 Yasushi Shoji <yashi@yashi.com>
+
+ * wl-vars.el (wl-subject-prefix-regexp): New variable.
+
+ * wl-draft.el (wl-draft-strip-subject-re): New function.
+
+ * wl-draft.el (wl-draft-reply): Use it.
+
2000-10-30 Yuuichi Teranishi <teranisi@gohome.org>
* wl-message.el (wl-mmelmo-message-redisplay): Use
(wl-draft-insert-message)
(mail-position-on-field "To"))
+(defun wl-draft-strip-subject-re (subject)
+ "Remove \"Re:\" from subject lines. Shamelessly copied from Gnus"
+ (if (string-match wl-subject-prefix-regexp subject)
+ (substring subject (match-end 0))
+ subject))
+
(defun wl-draft-reply (buf no-arg summary-buf)
""
;;;(save-excursion
(nth 1 addr))))
cc)))
(and subject wl-reply-subject-prefix
- (let ((case-fold-search t))
- (not
- (equal
- (string-match (regexp-quote wl-reply-subject-prefix)
- subject)
- 0)))
- (setq subject (concat wl-reply-subject-prefix subject)))
+ (setq subject (concat wl-reply-subject-prefix
+ (wl-draft-strip-subject-re subject))))
(setq in-reply-to (std11-field-body "Message-Id"))
(setq references (nconc
(std11-field-bodies '("References" "In-Reply-To"))
:group 'wl-pref
:group 'wl-draft)
+(defcustom wl-subject-prefix-regexp "^[ \t]*\\([Rr][Ee][:>][ \t]*\\)*[ \t]*"
+ "*Regexp matching \"Re: \" in the subject line."
+ :type 'regexp
+ :group 'wl-draft
+ :group 'wl-pref)
+
(defcustom wl-folder-many-unsync-threshold 70
"*Folders which contains messages more than this number are highlighted
with wl-highlight-folder-many-face."