Gnus development mailing list
 help / color / mirror / Atom feed
From: Jochen Hein <jochen@jochen.org>
To: ding@gnus.org
Cc: larsi@gnus.org, Jochen Hein <jochen@jochen.org>
Subject: [PATCH 3/4] nnimap: handle imap connections with type 'gssapi
Date: Sun, 14 Feb 2016 17:07:08 +0100	[thread overview]
Message-ID: <1455466029-12376-4-git-send-email-jochen@jochen.org> (raw)
In-Reply-To: <1455466029-12376-1-git-send-email-jochen@jochen.org>

	* lisp/gnus/nnimap.el (nnimap-open-connection-1): handle imap
        connections with type gssapi.
---
 lisp/gnus/nnimap.el | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index fc9304f..a92ed76 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -58,7 +58,7 @@ nnimap-server-port
 (defvoo nnimap-stream 'undecided
   "How nnimap talks to the IMAP server.
 The value should be either `undecided', `ssl' or `tls',
-`network', `starttls', `plain', or `shell'.
+`network', `starttls', `plain', `gssapi', or `shell'.
 
 If the value is `undecided', nnimap tries `ssl' first, then falls
 back on `network'.")
@@ -407,6 +407,10 @@ nnimap-open-connection-1
 	      (nnheader-message 7 "Opening connection to %s via shell..."
 				nnimap-address)
 	      '("imap"))
+	     ((eq nnimap-stream 'gssapi)
+	      (nnheader-message 7 "Opening connection to %s via GSSAPI..."
+				nnimap-address)
+	      '(143))
 	     ((memq nnimap-stream '(ssl tls))
 	      (nnheader-message 7 "Opening connection to %s via tls..."
 				nnimap-address)
@@ -460,7 +464,9 @@ nnimap-open-connection-1
 	    (setf (nnimap-capabilities nnimap-object)
 		  (mapcar #'upcase
 			  (split-string capabilities)))
-	    (unless (string-match-p "[*.] PREAUTH" greeting)
+	    (unless (or
+			(eq nnimap-stream 'gssapi)
+			(string-match-p "[*.] PREAUTH" greeting))
 	      (if (not (setq credentials
 			     (if (eq nnimap-authenticator 'anonymous)
 				 (list "anonymous"
-- 
2.1.4




  parent reply	other threads:[~2016-02-14 16:07 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-14 16:07 allow GSSAPI for imap access Jochen Hein
2016-02-14 16:07 ` [PATCH 1/4] open-gssapi-stream: remove parameter user Jochen Hein
2016-02-14 16:07 ` [PATCH 2/4] network-stream: allow type gssapi Jochen Hein
2016-02-14 16:07 ` Jochen Hein [this message]
2016-02-14 16:07 ` [PATCH 4/4] update nnimap documentation for gssapi connections Jochen Hein
2016-02-15  7:59 ` allow GSSAPI for imap access Lars Ingebrigtsen
2016-02-15 14:35   ` Adam Sjøgren
2016-02-15 16:39     ` Jochen Hein
2016-02-15 17:29       ` Adam Sjøgren
2016-02-15 18:31         ` Jochen Hein
2016-02-15 18:56           ` Adam Sjøgren
2016-02-15 19:58             ` Jochen Hein
2016-02-22  7:27           ` Adam Sjøgren
2016-02-22 18:41             ` Jochen Hein
2016-02-23 12:52               ` Adam Sjøgren
2016-02-15 14:38   ` Hein, Jochen
2016-02-15 14:46     ` Lars Ingebrigtsen
2016-02-16  5:57 ` Lars Ingebrigtsen
2016-02-16  9:21   ` Hein, Jochen
2016-02-21  3:10     ` Lars Ingebrigtsen
2016-03-20 19:11       ` Jochen Hein/Jochen Kellner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1455466029-12376-4-git-send-email-jochen@jochen.org \
    --to=jochen@jochen.org \
    --cc=ding@gnus.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).