aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman2002-04-25 21:45:22 +0000
committerRichard M. Stallman2002-04-25 21:45:22 +0000
commit08b10dd42203df042eda499099598ee108ebcd2e (patch)
tree17cb3b38dd3dde127674854b3525981a534982a5 /lisp
parente1cac35a1e839f5849399f44b9142c92fbc8660d (diff)
downloademacs-08b10dd42203df042eda499099598ee108ebcd2e.tar.gz
emacs-08b10dd42203df042eda499099598ee108ebcd2e.zip
(smtpmail-queue-counter): New variable.
(smtpmail-send-it): Use it to construct new queue filenames (needed if you send more than one message per second, which is possible if you use Gnus Agent).
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mail/smtpmail.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index 70376e0bf71..8353653526b 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -35,7 +35,7 @@
35;; Please add these lines in your .emacs(_emacs) or use customize. 35;; Please add these lines in your .emacs(_emacs) or use customize.
36;; 36;;
37;;(setq send-mail-function 'smtpmail-send-it) ; if you use `mail' 37;;(setq send-mail-function 'smtpmail-send-it) ; if you use `mail'
38;;(setq message-send-mail-function 'smtpmail-send-it) ; if you are using Gnus. 38;;(setq message-send-mail-function 'smtpmail-send-it) ; if you use message/Gnus
39;;(setq smtpmail-default-smtp-server "YOUR SMTP HOST") 39;;(setq smtpmail-default-smtp-server "YOUR SMTP HOST")
40;;(setq smtpmail-local-domain "YOUR DOMAIN NAME") 40;;(setq smtpmail-local-domain "YOUR DOMAIN NAME")
41;;(setq smtpmail-sendto-domain "YOUR DOMAIN NAME") 41;;(setq smtpmail-sendto-domain "YOUR DOMAIN NAME")
@@ -191,6 +191,8 @@ This is relative to `smtpmail-queue-dir'.")
191(defvar smtpmail-address-buffer) 191(defvar smtpmail-address-buffer)
192(defvar smtpmail-recipient-address-list) 192(defvar smtpmail-recipient-address-list)
193 193
194(defvar smtpmail-queue-counter 0)
195
194;; Buffer-local variable. 196;; Buffer-local variable.
195(defvar smtpmail-read-point) 197(defvar smtpmail-read-point)
196 198
@@ -334,8 +336,10 @@ This is relative to `smtpmail-queue-dir'.")
334 (let* ((file-data (concat 336 (let* ((file-data (concat
335 smtpmail-queue-dir 337 smtpmail-queue-dir
336 (concat (time-stamp-yyyy-mm-dd) 338 (concat (time-stamp-yyyy-mm-dd)
337 "_" (time-stamp-hh:mm:ss)))) 339 "_" (time-stamp-hh:mm:ss)
338 (file-data (convert-standard-filename file-data)) 340 "_"
341 (setq smtpmail-queue-counter
342 (1+ smtpmail-queue-counter)))))
339 (file-elisp (concat file-data ".el")) 343 (file-elisp (concat file-data ".el"))
340 (buffer-data (create-file-buffer file-data)) 344 (buffer-data (create-file-buffer file-data))
341 (buffer-elisp (create-file-buffer file-elisp)) 345 (buffer-elisp (create-file-buffer file-elisp))