# HG changeset patch # User Richard M. Stallman # Date 1019771122 0 # Node ID c18dd95f696298f160e08cde5358ba98f817ba63 # Parent 6dbfe921e3c2ab1cebdb5db01b1d1819154a7051 (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). diff -r 6dbfe921e3c2 -r c18dd95f6962 lisp/mail/smtpmail.el --- a/lisp/mail/smtpmail.el Thu Apr 25 21:45:22 2002 +0000 +++ b/lisp/mail/smtpmail.el Thu Apr 25 21:45:22 2002 +0000 @@ -35,7 +35,7 @@ ;; Please add these lines in your .emacs(_emacs) or use customize. ;; ;;(setq send-mail-function 'smtpmail-send-it) ; if you use `mail' -;;(setq message-send-mail-function 'smtpmail-send-it) ; if you are using Gnus. +;;(setq message-send-mail-function 'smtpmail-send-it) ; if you use message/Gnus ;;(setq smtpmail-default-smtp-server "YOUR SMTP HOST") ;;(setq smtpmail-local-domain "YOUR DOMAIN NAME") ;;(setq smtpmail-sendto-domain "YOUR DOMAIN NAME") @@ -191,6 +191,8 @@ (defvar smtpmail-address-buffer) (defvar smtpmail-recipient-address-list) +(defvar smtpmail-queue-counter 0) + ;; Buffer-local variable. (defvar smtpmail-read-point) @@ -334,8 +336,10 @@ (let* ((file-data (concat smtpmail-queue-dir (concat (time-stamp-yyyy-mm-dd) - "_" (time-stamp-hh:mm:ss)))) - (file-data (convert-standard-filename file-data)) + "_" (time-stamp-hh:mm:ss) + "_" + (setq smtpmail-queue-counter + (1+ smtpmail-queue-counter))))) (file-elisp (concat file-data ".el")) (buffer-data (create-file-buffer file-data)) (buffer-elisp (create-file-buffer file-elisp))