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)
This commit is contained in:
Eli Zaretskii 2019-02-01 11:16:13 +02:00
parent 9c8412a0b8
commit 7ba8f80398

View file

@ -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)))