nnimap.el: Handle plain value for nnimap-stream
authorNikolaus Rath <Nikolaus@rath.org>
Wed, 8 Jul 2015 03:52:45 +0000 (20:52 -0700)
committerEric Abrahamsen <eric@ericabrahamsen.net>
Thu, 9 Jul 2015 02:14:14 +0000 (10:14 +0800)
* lisp/nnimap.el (nnimap-open-connection-1): Always query capabilities,
  so that a 'plain value for the `nnimap-stream' server variable is
  handled correctly.
* texi/gnus.texi: Document the 'plain option.

lisp/ChangeLog
lisp/nnimap.el
texi/gnus.texi

index 86ed0f4..652c52b 100644 (file)
@@ -1,3 +1,10 @@
+2015-07-09  Nikolaus Rath  <Nikolaus@rath.org>
+
+        * lisp/nnimap.el (nnimap-open-connection-1): Always query capabilities,
+       so that a 'plain value for the `nnimap-stream' server variable is
+       handled correctly.
+        * texi/gnus.texi: Document the 'plain option.
+
 2015-07-08  Eric Abrahamsen  <eric@ericabrahamsen.net>
 
        Remove unused let variables
index 40610e1..8eb6268 100644 (file)
@@ -423,6 +423,7 @@ textual parts.")
               :return-list t
               :shell-command nnimap-shell-program
               :capability-command "1 CAPABILITY\r\n"
+               :always-query-capabilities t
               :end-of-command "\r\n"
               :success " OK "
               :starttls-function
index b190184..97673ea 100644 (file)
@@ -14252,6 +14252,10 @@ If you need to tunnel via other systems to connect to the server, you
 can use this option, and customize @code{nnimap-shell-program} to be
 what you need.
 
+@item plain
+Non-encrypted and unsafe straight socket connection.
+@acronym{STARTTLS} will not be used even if it is available.
+
 @end table
 
 @item nnimap-authenticator