emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 7ba8f80: Avoid errors in 'rmail-get-new-mail'


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 7ba8f80: Avoid errors in 'rmail-get-new-mail'
Date: Fri, 1 Feb 2019 04:17:04 -0500 (EST)

branch: emacs-26
commit 7ba8f803983fce7896042289ca47b3de4df42bb7
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Avoid errors in 'rmail-get-new-mail'
    
    * lisp/mail/rmail.el (rmail-insert-inbox-text): Don't assume
    the Rmail protocol is always a string when calling
    'rmail-remote-proto-p'.  (Bug#34252)
---
 lisp/mail/rmail.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 768454a..8a75f1f 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -2079,7 +2079,8 @@ Value is the size of the newly read mail after 
conversion."
                   ;; If we just read the password, most likely it is
                   ;; wrong.  Otherwise, see if there is a specific
                   ;; reason to think that the problem is a wrong passwd.
-                  (if (and (rmail-remote-proto-p proto)
+                  (if (and proto
+                            (rmail-remote-proto-p proto)
                            (or got-password
                                (re-search-forward rmail-remote-password-error
                                                   nil t)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]