+2008-09-03 Teodor Zlatanov <tzz@lifelogs.com>
+
+ * message.el (message-confirm-send): New variable to confirm sending a
+ message.
+ (message-send): Use it.
+
2008-08-30 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-spec.el (gnus-parse-simple-format): Revert last patch.
:link '(custom-manual "(message)Sending Variables")
:type 'boolean)
+(defcustom message-confirm-send nil
+ "Non-nil means when sending a message ask for y/n confirmation."
+ :group 'message-sending
+ :group 'message-mail
+ :link '(custom-manual "(message)Sending Variables")
+ :type 'boolean)
+
(defcustom message-generate-new-buffers 'unique
"*Say whether to create a new message buffer to compose a message.
Valid values include:
(put-text-property (point-min) (point-max) 'read-only nil))
(message-fix-before-sending)
(run-hooks 'message-send-hook)
+ (when message-confirm-send
+ (or (y-or-n-p "Send message? ")
+ (keyboard-quit)))
(message message-sending-message)
(let ((alist message-send-method-alist)
(success t)