2002-12-22 Kenichi OKADA <okada@opaopa.org>
+ * wl-draft.el (wl-draft-send): Preview when interactive send.
+
+2002-12-22 Kenichi OKADA <okada@opaopa.org>
+
* wl-draft.el (wl-draft-reply): Set default position.
* wl-summary.el (wl-summary-reply): Ditto.
(wl-summary-reply-with-citation): Ditto.
;; (wl-draft-config-exec)
(run-hooks 'wl-draft-send-hook)
(when (or (not wl-interactive-send)
- (y-or-n-p "Do you really want to send current draft? "))
+ (let (result)
+ (wl-draft-preview-message)
+ (goto-char (point-min))
+ (condition-case nil
+ (setq result
+ (y-or-n-p "Do you really want to send current draft? "))
+ (quit
+ (mime-preview-quit)
+ (signal 'quit nil)))
+ (mime-preview-quit)
+ result))
(let ((send-mail-function 'wl-draft-raw-send)
(editing-buffer (current-buffer))
(sending-buffer (wl-draft-generate-clone-buffer