aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-10-27 23:33:14 +0000
committerDave Love2000-10-27 23:33:14 +0000
commit75807ea6fa14a686a396ba9a1636179eb2798f4f (patch)
treed176b51eba19c29de916c33258acaff74b7ebe3d
parenta261748441bb69108772a8d592674b85725341d8 (diff)
downloademacs-75807ea6fa14a686a396ba9a1636179eb2798f4f.tar.gz
emacs-75807ea6fa14a686a396ba9a1636179eb2798f4f.zip
2000-10-08 Christoph Conrad <christoph.conrad@gmx.de>
* gnus-draft.el (gnus-draft-send-message): Typo. 2000-10-07 08:19:17 ShengHuo ZHU <zsh@cs.rochester.edu> * gnus-draft.el (gnus-draft-send-message): Ditto. (gnus-group-send-drafts): Ditto. * gnus-agent.el (gnus-agent-possibly-do-gcc): (gnus-agent-restore-gcc): (gnus-agent-possibly-save-gcc): New functions.
-rw-r--r--lisp/gnus/gnus-draft.el31
1 files changed, 21 insertions, 10 deletions
diff --git a/lisp/gnus/gnus-draft.el b/lisp/gnus/gnus-draft.el
index 5e7850e0eb1..0aff7902724 100644
--- a/lisp/gnus/gnus-draft.el
+++ b/lisp/gnus/gnus-draft.el
@@ -3,6 +3,7 @@
3;; Free Software Foundation, Inc. 3;; Free Software Foundation, Inc.
4 4
5;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 5;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
6;; Maintainer: bugs@gnus.org
6;; Keywords: news 7;; Keywords: news
7 8
8;; This file is part of GNU Emacs. 9;; This file is part of GNU Emacs.
@@ -112,12 +113,16 @@
112(defun gnus-draft-send-message (&optional n) 113(defun gnus-draft-send-message (&optional n)
113 "Send the current draft." 114 "Send the current draft."
114 (interactive "P") 115 (interactive "P")
115 (let ((articles (gnus-summary-work-articles n)) 116 (let* ((articles (gnus-summary-work-articles n))
116 article) 117 (total (length articles))
118 article)
117 (while (setq article (pop articles)) 119 (while (setq article (pop articles))
118 (gnus-summary-remove-process-mark article) 120 (gnus-summary-remove-process-mark article)
119 (unless (memq article gnus-newsgroup-unsendable) 121 (unless (memq article gnus-newsgroup-unsendable)
120 (gnus-draft-send article gnus-newsgroup-name t) 122 (let ((message-sending-message
123 (format "Sending message %d of %d..."
124 (- total (length articles)) total)))
125 (gnus-draft-send article gnus-newsgroup-name t))
121 (gnus-summary-mark-article article gnus-canceled-mark))))) 126 (gnus-summary-mark-article article gnus-canceled-mark)))))
122 127
123(defun gnus-draft-send (article &optional group interactive) 128(defun gnus-draft-send (article &optional group interactive)
@@ -143,6 +148,8 @@
143 (setq type (ignore-errors (read (current-buffer))) 148 (setq type (ignore-errors (read (current-buffer)))
144 method (ignore-errors (read (current-buffer)))) 149 method (ignore-errors (read (current-buffer))))
145 (message-remove-header gnus-agent-meta-information-header))) 150 (message-remove-header gnus-agent-meta-information-header)))
151 ;; Let Agent restore any GCC lines and have message.el perform them.
152 (gnus-agent-restore-gcc)
146 ;; Then we send it. If we have no meta-information, we just send 153 ;; Then we send it. If we have no meta-information, we just send
147 ;; it and let Message figure out how. 154 ;; it and let Message figure out how.
148 (when (and (or (null method) 155 (when (and (or (null method)
@@ -170,15 +177,19 @@
170 (interactive) 177 (interactive)
171 (gnus-activate-group "nndraft:queue") 178 (gnus-activate-group "nndraft:queue")
172 (save-excursion 179 (save-excursion
173 (let ((articles (nndraft-articles)) 180 (let* ((articles (nndraft-articles))
174 (unsendable (gnus-uncompress-range 181 (unsendable (gnus-uncompress-range
175 (cdr (assq 'unsend 182 (cdr (assq 'unsend
176 (gnus-info-marks 183 (gnus-info-marks
177 (gnus-get-info "nndraft:queue")))))) 184 (gnus-get-info "nndraft:queue"))))))
178 article) 185 (total (length articles))
186 article)
179 (while (setq article (pop articles)) 187 (while (setq article (pop articles))
180 (unless (memq article unsendable) 188 (unless (memq article unsendable)
181 (gnus-draft-send article)))))) 189 (let ((message-sending-message
190 (format "Sending message %d of %d..."
191 (- total (length articles)) total)))
192 (gnus-draft-send article)))))))
182 193
183;;; Utility functions 194;;; Utility functions
184 195