-2002-05-20 Yuuichi Teranishi <teranisi@gohome.org>
+2002-05-20 Yuuichi Teranishi <teranisi@ns.templewest.net>
* wl-draft.el (wl-draft-do-mime-bcc): Use generate-new-buffer and
insert-buffer instead of clone-buffer.
+ (wl-draft-doing-mime-bcc): New variable.
+ (wl-draft-do-mime-bcc): Bind wl-draft-doing-mime-bcc to avoid
+ infinite loop.
* wl-vars.el (wl-draft-mime-bcc-field-name): New user option.
(wl-draft-mime-bcc-body): Ditto.
(defvar wl-draft-reply-buffer nil)
(defvar wl-draft-forward nil)
(defvar wl-draft-parent-folder nil)
+(defvar wl-draft-doing-mime-bcc nil)
(defvar wl-draft-config-sub-func-alist
'((body . wl-draft-config-sub-body)
(recipients (wl-parse-addresses field-body))
(draft-buffer (current-buffer))
buffer)
- (when (not (zerop (length field-body)))
+ (when (and (not wl-draft-doing-mime-bcc) ; To avoid infinite loop.
+ (not (zerop (length field-body))))
(with-current-buffer (setq buffer (generate-new-buffer
" *temporary buffer for mime bcc*"))
(insert-buffer draft-buffer))
(unwind-protect
(dolist (recipient recipients)
(with-temp-buffer
- (let (mail-citation-hook
+ (let ((wl-draft-doing-mime-bcc t)
+ mail-citation-hook
mail-yank-hooks
wl-draft-add-references
wl-draft-add-in-reply-to