diff options
| author | Lars Magne Ingebrigtsen | 2011-07-03 22:09:38 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-07-03 22:09:38 +0200 |
| commit | 6567659206992985307ef5dd19bcbecf975634c8 (patch) | |
| tree | c20f4964cd0e603f1c173e46e3c29eca00ebd311 | |
| parent | c7f98048774c68d0e169763c1819452d272bceee (diff) | |
| download | emacs-6567659206992985307ef5dd19bcbecf975634c8.tar.gz emacs-6567659206992985307ef5dd19bcbecf975634c8.zip | |
* mail/feedmail.el (feedmail-buffer-to-smtpmail):
`smtpmail-via-smtp' now returns the error instead of nil.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/mail/feedmail.el | 31 |
2 files changed, 18 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7ce4753cb14..481000f8851 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2011-07-03 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * mail/feedmail.el (feedmail-buffer-to-smtpmail): | ||
| 4 | `smtpmail-via-smtp' now returns the error instead of nil. | ||
| 5 | |||
| 3 | * isearch.el (isearch-search-fun-function): Clarify the doc string | 6 | * isearch.el (isearch-search-fun-function): Clarify the doc string |
| 4 | (bug#8101). | 7 | (bug#8101). |
| 5 | 8 | ||
diff --git a/lisp/mail/feedmail.el b/lisp/mail/feedmail.el index 934637ecbbd..bc9a0604279 100644 --- a/lisp/mail/feedmail.el +++ b/lisp/mail/feedmail.el | |||
| @@ -1633,22 +1633,21 @@ local gurus." | |||
| 1633 | ;; no evil. | 1633 | ;; no evil. |
| 1634 | (feedmail-say-debug ">in-> feedmail-buffer-to-smtpmail %s" addr-listoid) | 1634 | (feedmail-say-debug ">in-> feedmail-buffer-to-smtpmail %s" addr-listoid) |
| 1635 | (require 'smtpmail) | 1635 | (require 'smtpmail) |
| 1636 | (if (not (smtpmail-via-smtp addr-listoid prepped)) | 1636 | (let ((result (smtpmail-via-smtp addr-listoid prepped))) |
| 1637 | (progn | 1637 | (when result |
| 1638 | (set-buffer errors-to) | 1638 | (set-buffer errors-to) |
| 1639 | (insert "Send via smtpmail failed. Probable SMTP protocol error.\n") | 1639 | (insert "Send via smtpmail failed: %s" result) |
| 1640 | (insert "Look for details below or in the *Messages* buffer.\n\n") | 1640 | (let ((case-fold-search t) |
| 1641 | (let ((case-fold-search t) | 1641 | ;; don't be overconfident about the name of the trace buffer |
| 1642 | ;; don't be overconfident about the name of the trace buffer | 1642 | (tracer (concat "trace.*smtp.*" (regexp-quote smtpmail-smtp-server)))) |
| 1643 | (tracer (concat "trace.*smtp.*" (regexp-quote smtpmail-smtp-server)))) | 1643 | (mapcar |
| 1644 | (mapcar | 1644 | (lambda (buffy) |
| 1645 | (lambda (buffy) | 1645 | (if (string-match tracer (buffer-name buffy)) |
| 1646 | (if (string-match tracer (buffer-name buffy)) | 1646 | (progn |
| 1647 | (progn | 1647 | (insert "SMTP Trace from " (buffer-name buffy) "\n---------------") |
| 1648 | (insert "SMTP Trace from " (buffer-name buffy) "\n---------------") | 1648 | (insert-buffer-substring buffy) |
| 1649 | (insert-buffer-substring buffy) | 1649 | (insert "\n\n")))) |
| 1650 | (insert "\n\n")))) | 1650 | (buffer-list)))))) |
| 1651 | (buffer-list)))))) | ||
| 1652 | 1651 | ||
| 1653 | (declare-function smtp-via-smtp "ext:smtp" (sender recipients smtp-text-buffer)) | 1652 | (declare-function smtp-via-smtp "ext:smtp" (sender recipients smtp-text-buffer)) |
| 1654 | (defvar smtp-server) | 1653 | (defvar smtp-server) |