aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolaus Rath2015-07-09 03:54:03 +0000
committerKatsumi Yamaoka2015-07-09 03:54:03 +0000
commit0bec5a22cea517a15cf7eb5674094b94d1a7ead8 (patch)
treec17ef486840f9f33115683c1bb6f411adaa19ded
parent7a94f28a470d640eda3f36016f4fc8946aac63be (diff)
downloademacs-0bec5a22cea517a15cf7eb5674094b94d1a7ead8.tar.gz
emacs-0bec5a22cea517a15cf7eb5674094b94d1a7ead8.zip
nnimap.el: Handle plain value for nnimap-stream
* lisp/gnus/nnimap.el (nnimap-open-connection-1): Always query capabilities, so that a 'plain value for the `nnimap-stream' server variable is handled correctly. * doc/misc/gnus.texi (Customizing the IMAP Connection): Document the 'plain option.
-rw-r--r--doc/misc/gnus.texi4
-rw-r--r--lisp/gnus/nnimap.el1
2 files changed, 5 insertions, 0 deletions
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index d801031c563..0afc7e47c4b 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -14252,6 +14252,10 @@ If you need to tunnel via other systems to connect to the server, you
14252can use this option, and customize @code{nnimap-shell-program} to be 14252can use this option, and customize @code{nnimap-shell-program} to be
14253what you need. 14253what you need.
14254 14254
14255@item plain
14256Non-encrypted and unsafe straight socket connection.
14257@acronym{STARTTLS} will not be used even if it is available.
14258
14255@end table 14259@end table
14256 14260
14257@item nnimap-authenticator 14261@item nnimap-authenticator
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 40610e1d71a..8eb6268a140 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -423,6 +423,7 @@ textual parts.")
423 :return-list t 423 :return-list t
424 :shell-command nnimap-shell-program 424 :shell-command nnimap-shell-program
425 :capability-command "1 CAPABILITY\r\n" 425 :capability-command "1 CAPABILITY\r\n"
426 :always-query-capabilities t
426 :end-of-command "\r\n" 427 :end-of-command "\r\n"
427 :success " OK " 428 :success " OK "
428 :starttls-function 429 :starttls-function