From: morioka Date: Mon, 12 Jan 1998 18:34:05 +0000 (+0000) Subject: (smtpmail-recipient-address-list): New variable; renamed from X-Git-Tag: gnus-6_7-tomo-199811302358~236 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=797a7fa6eac61b5f05b241bf40455a485d40e5fb;p=elisp%2Fgnus.git- (smtpmail-recipient-address-list): New variable; renamed from `smtp-recipient-address-list'. (smtpmail-send-it): Remove `(not (null ...))'. (smtpmail-send-queued-mail): Likewise. --- diff --git a/lisp/smtpmail.el b/lisp/smtpmail.el index ee82d03..77a5947 100644 --- a/lisp/smtpmail.el +++ b/lisp/smtpmail.el @@ -69,6 +69,9 @@ This is relative to `smtpmail-queue-dir'.") (defvar smtpmail-queue-index (concat smtpmail-queue-dir smtpmail-queue-index-file)) +(defvar smtpmail-recipient-address-list nil) + + ;;; ;;; ;;; @@ -200,16 +203,16 @@ This is relative to `smtpmail-queue-dir'.") ;; ;; ;; - (setq smtp-recipient-address-list + (setq smtpmail-recipient-address-list (or resend-to-addresses (smtp-deduce-address-list tembuf (point-min) delimline))) (smtp-do-bcc delimline) ; Send or queue (if (not smtpmail-queue-mail) - (if (not (null smtp-recipient-address-list)) - (if (not (smtp-via-smtp - smtp-recipient-address-list tembuf)) + (if smtpmail-recipient-address-list + (if (not (smtp-via-smtp + smtpmail-recipient-address-list tembuf)) (error "Sending failed; SMTP protocol error")) (error "Sending failed; no recipients")) (let* ((file-data (concat @@ -228,8 +231,8 @@ This is relative to `smtpmail-queue-dir'.") (set-buffer buffer-elisp) (erase-buffer) (insert (concat - "(setq smtp-recipient-address-list '" - (prin1-to-string smtp-recipient-address-list) + "(setq smtpmail-recipient-address-list '" + (prin1-to-string smtpmail-recipient-address-list) ")\n")) (write-file file-elisp) (set-buffer (generate-new-buffer buffer-scratch)) @@ -261,9 +264,8 @@ This is relative to `smtpmail-queue-dir'.") (point)))) (load file-msg) (setq tembuf (find-file-noselect file-msg)) - (if (not (null smtp-recipient-address-list)) - (if (not (smtp-via-smtp smtp-recipient-address-list - tembuf)) + (if smtpmail-recipient-address-list + (if (not (smtp-via-smtp smtpmail-recipient-address-list tembuf)) (error "Sending failed; SMTP protocol error")) (error "Sending failed; no recipients")) (delete-file file-msg)