(nnimap-open-connection): Message when opening connection for debugging purposes.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Thu, 14 Oct 2010 21:54:43 +0000 (23:54 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Thu, 14 Oct 2010 21:54:43 +0000 (23:54 +0200)
lisp/ChangeLog
lisp/nnimap.el

index 8fa0ec1..b82aabc 100644 (file)
@@ -1,5 +1,8 @@
 2010-10-14  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * nnimap.el (nnimap-open-connection): Message when opening connection
+       for debugging purposes.
+
        * gnus-art.el (gnus-article-setup-buffer): Set article mode truncation
        on every setup buffer call to allow this to change from article to
        article.
index 2c3a38a..bb9f569 100644 (file)
@@ -304,6 +304,7 @@ textual parts.")
               ((or (eq nnimap-stream 'network)
                    (and (eq nnimap-stream 'starttls)
                         (fboundp 'open-gnutls-stream)))
+               (message "Opening connection to %s..." nnimap-address)
                (open-network-stream
                 "*nnimap*" (current-buffer) nnimap-address
                 (setq port
@@ -313,11 +314,14 @@ textual parts.")
                             "143"))))
                '("143" "imap"))
               ((eq nnimap-stream 'shell)
+               (message "Opening connection to %s via shell..." nnimap-address)
                (nnimap-open-shell-stream
                 "*nnimap*" (current-buffer) nnimap-address
                 (setq port (or nnimap-server-port "imap")))
                '("imap"))
               ((eq nnimap-stream 'starttls)
+               (message "Opening connection to %s via starttls..."
+                        nnimap-address)
                (let ((tls-program
                       '("openssl s_client -connect %h:%p -no_ssl2 -ign_eof -starttls imap")))
                  (open-tls-stream
@@ -325,6 +329,7 @@ textual parts.")
                   (setq port (or nnimap-server-port "imap"))))
                '("imap"))
               ((memq nnimap-stream '(ssl tls))
+               (message "Opening connection to %s via tls..." nnimap-address)
                (funcall (if (fboundp 'open-gnutls-stream)
                             'open-gnutls-stream
                           'open-tls-stream)