diff options
| author | Richard M. Stallman | 2005-05-22 13:49:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-05-22 13:49:09 +0000 |
| commit | 88f2c9add0ee80e9864503136d01e5f91169bc71 (patch) | |
| tree | f13aecc0d9fea8343695b74bb210a021c199eeae | |
| parent | 637502c3f322811297a9a9bad1eccea4a280257c (diff) | |
| download | emacs-88f2c9add0ee80e9864503136d01e5f91169bc71.tar.gz emacs-88f2c9add0ee80e9864503136d01e5f91169bc71.zip | |
(smtpmail-open-stream): Use with-no-warnings.
(smtpmail-send-queued-mail): Avoid beginning-of-buffer.
(starttls-extra-args, starttls-extra-arguments): Add defvars.
| -rw-r--r-- | lisp/mail/smtpmail.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 3cf17f8968d..931e1417a2d 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -396,7 +396,7 @@ This is relative to `smtpmail-queue-dir'.") | |||
| 396 | ;;; mail, send it, etc... | 396 | ;;; mail, send it, etc... |
| 397 | (let ((file-msg "")) | 397 | (let ((file-msg "")) |
| 398 | (insert-file-contents smtpmail-queue-index) | 398 | (insert-file-contents smtpmail-queue-index) |
| 399 | (beginning-of-buffer) | 399 | (goto-char (point-min)) |
| 400 | (while (not (eobp)) | 400 | (while (not (eobp)) |
| 401 | (setq file-msg (buffer-substring (point) (line-end-position))) | 401 | (setq file-msg (buffer-substring (point) (line-end-position))) |
| 402 | (load file-msg) | 402 | (load file-msg) |
| @@ -465,11 +465,14 @@ This is relative to `smtpmail-queue-dir'.") | |||
| 465 | (push el2 result))) | 465 | (push el2 result))) |
| 466 | (nreverse result))) | 466 | (nreverse result))) |
| 467 | 467 | ||
| 468 | (defvar starttls-extra-args) | ||
| 469 | (defvar starttls-extra-arguments) | ||
| 470 | |||
| 468 | (defun smtpmail-open-stream (process-buffer host port) | 471 | (defun smtpmail-open-stream (process-buffer host port) |
| 469 | (let ((cred (smtpmail-find-credentials | 472 | (let ((cred (smtpmail-find-credentials |
| 470 | smtpmail-starttls-credentials host port))) | 473 | smtpmail-starttls-credentials host port))) |
| 471 | (if (null (and cred (condition-case () | 474 | (if (null (and cred (condition-case () |
| 472 | (progn | 475 | (with-no-warnings |
| 473 | (require 'starttls) | 476 | (require 'starttls) |
| 474 | (call-process (if starttls-use-gnutls | 477 | (call-process (if starttls-use-gnutls |
| 475 | starttls-gnutls-program | 478 | starttls-gnutls-program |