+2001-11-30 Tatsuya Kinoshita <tats@iris.ne.jp>
+
+ * wl-vars.el (wl-draft-add-references): Set default value as nil.
+ (wl-draft-add-in-reply-to): New variable.
+ * wl-draft.el (wl-draft-add-references, wl-draft-add-in-reply-to):
+ Divided from `wl-draft-add-references'; add support `In-Reply-To'.
+ (wl-draft-yank-from-mail-reply-buffer): Use
+ `wl-draft-add-in-reply-to'.
+ (wl-draft-insert-current-message): Ditto.
+
2001-12-01 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* wl-vars.el (wl-folder-process-duplicates-alist): Fixed
(run-hooks 'wl-reply-hook))
(defun wl-draft-add-references ()
+ (wl-draft-add-in-reply-to "References"))
+
+(defun wl-draft-add-in-reply-to (&optional alt-field)
(let* ((mes-id (save-excursion
(set-buffer mail-reply-buffer)
(std11-field-body "message-id")))
- (ref (std11-field-body "References"))
+ (field (or alt-field "In-Reply-To"))
+ (ref (std11-field-body field))
(ref-list nil) (st nil))
(when (and mes-id ref)
(while (string-match "<[^>]+>" ref st)
(setq mes-id nil)))
(when mes-id
(save-excursion
- (when (mail-position-on-field "References")
+ (when (mail-position-on-field field)
(forward-line)
(while (looking-at "^[ \t]")
(forward-line))
(mail-yank-hooks (run-hooks 'mail-yank-hooks))
(wl-draft-cite-function (funcall wl-draft-cite-function))) ; default cite
(run-hooks 'wl-draft-cited-hook)
- (when (and wl-draft-add-references
- (wl-draft-add-references))
+ (when (if wl-draft-add-references
+ (wl-draft-add-references)
+ (if wl-draft-add-in-reply-to
+ (wl-draft-add-in-reply-to)))
(wl-highlight-headers 'for-draft)) ; highlight when added References:
(when wl-highlight-body-too
(wl-highlight-body-region beg (point-max)))))
(let (original-buffer
mail-reply-buffer
mail-citation-hook mail-yank-hooks
- wl-draft-add-references wl-draft-cite-function)
+ wl-draft-add-references wl-draft-add-in-reply-to
+ wl-draft-cite-function)
(with-current-buffer wl-draft-buffer-cur-summary-buffer
(with-current-buffer wl-message-buffer
(setq original-buffer (wl-message-get-original-buffer))
:group 'wl
:group 'wl-setting)
-(defcustom wl-draft-add-references t
+(defcustom wl-draft-add-in-reply-to t
+ "*If non-nil, message-id of the cited message is inserted to the
+in-reply-to field of the current draft."
+ :type 'boolean
+ :group 'wl)
+
+(defcustom wl-draft-add-references nil
"*If non-nil, message-id of the cited message is inserted to the
references field of the current draft."
:type 'boolean