From b8c527c9b26bd7a2890bdaec944d96bf8ff47c50 Mon Sep 17 00:00:00 2001 From: Lars Magne Ingebrigtsen Date: Mon, 4 Oct 2010 22:44:18 +0200 Subject: [PATCH] (nnimap-open-connection): Give an error if nnimap-stream is unknown. --- lisp/nnimap.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/nnimap.el b/lisp/nnimap.el index 0be841ab8..c3c25cbf1 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -324,7 +324,9 @@ textual parts.") (if (netrc-find-service-number "imaps") "imaps" "993")))) - '("143" "993" "imap" "imaps")))) + '("143" "993" "imap" "imaps")) + (t + (error "Unknown stream type: %s" nnimap-stream)))) connection-result login-result credentials) (setf (nnimap-process nnimap-object) (get-buffer-process (current-buffer))) -- 2.25.1