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.
(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"
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
;; 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
(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)))