Synch to Gnus 200308101651.
authoryamaoka <yamaoka>
Sun, 10 Aug 2003 22:26:00 +0000 (22:26 +0000)
committeryamaoka <yamaoka>
Sun, 10 Aug 2003 22:26:00 +0000 (22:26 +0000)
lisp/ChangeLog
lisp/gnus-draft.el

index d46afde..4df0a2a 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-10  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * gnus-draft.el (gnus-draft-send-all-messages): ask if all drafts
+       should be sent unless gnus-expert-user is on
+
 2003-08-09  Jesper Harder  <harder@ifa.au.dk>
 
        * pgg-gpg.el (pgg-gpg-extra-args): Fix customization type.
index db83179..d61c583 100644 (file)
 (defun gnus-draft-send-all-messages ()
   "Send all the sendable drafts."
   (interactive)
-  (gnus-uu-mark-buffer)
-  (gnus-draft-send-message))
+  (when (or
+        gnus-expert-user
+        (gnus-y-or-n-p
+         "Send all drafts? "))
+    (gnus-uu-mark-buffer)
+    (gnus-draft-send-message)))
 
 (defun gnus-group-send-queue ()
   "Send all sendable articles from the queue group."