(proto-stream-open-network): Fix some typos.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sat, 27 Nov 2010 14:36:34 +0000 (15:36 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Sat, 27 Nov 2010 14:39:04 +0000 (15:39 +0100)
lisp/ChangeLog
lisp/nnimap.el
lisp/proto-stream.el

index 7fe52c3..f05a92f 100644 (file)
@@ -17,6 +17,8 @@
 
 2010-11-27  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * nnimap.el (nnimap-open-connection): Fix typo in STARTTLS command.
+
        * proto-stream.el: New library to provide protocol-specific
        TLS/STARTTLS connections for IMAP, NNTP, SMTP, POP3 and similar
        protocols.
index bab4cb8..0041fe4 100644 (file)
@@ -338,7 +338,7 @@ textual parts.")
             (if (not (string-match "STARTTLS" capabilities))
                 ;; Not a STARTTLS-capable server.
                 nil
-              "1 STARTTLS")))
+              "1 STARTTLS\r\n")))
        (setf (nnimap-process nnimap-object) stream)
        (if (not stream)
            (nnheader-report 'nnimap "Unable to contact %s:%s via %s"
@@ -1042,7 +1042,7 @@ textual parts.")
                   uidvalidity
                   modseq)
              (push
-              (list (nnimap-send-command "EXAMINE %S (QRESYNC (%s %s))"
+              (list (nnimap-send-command "EXAMINE %S (QRESYNC  (%s %s))"
                                          (utf7-encode group t)
                                          uidvalidity modseq)
                     'qresync
index 15c3033..226157a 100644 (file)
@@ -119,13 +119,13 @@ command to switch on STARTTLS otherwise."
            ;; Otherwise, just return this plain network connection.
            (list stream greeting capabilities)))
         ((fboundp 'open-gnutls-stream)
-         (setq start (with-current-buffer buffer (point)))
+         (setq start (with-current-buffer buffer (point-max)))
          (process-send-string stream starttls-command)
          (proto-stream-get-response stream start)
          (gnutls-negotiate stream nil)
          ;; Re-get the capabilities, since they may have changed
          ;; after switching to TLS.
-         (setq start (with-current-buffer buffer (point)))
+         (setq start (with-current-buffer buffer (point-max)))
          (process-send-string stream capability-command)
          (list stream greeting (proto-stream-get-response stream start)))
         (t
@@ -133,7 +133,7 @@ command to switch on STARTTLS otherwise."
          (proto-stream-open-starttls name buffer host service parameters)))))))
 
 (defun proto-stream-capabilities (stream command)
-  (let ((start (with-current-buffer (process-buffer stream) (point))))
+  (let ((start (with-current-buffer (process-buffer stream) (point-max))))
     (process-send-string stream command)
     (proto-stream-get-response stream start)))