2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
+ * nnimap.el (nnimap-open-connection): Upcase all capabilities, and use
+ only upcased checks.
+
* nnmail.el (nnmail-article-group): Fix typo in "bogus" section.
* nnimap.el (nnimap-open-shell-stream): New function.
(nnimap-article-ranges (gnus-compress-sequence articles))
(format "(UID RFC822.SIZE BODYSTRUCTURE %s)"
(format
- (if (member "IMAP4rev1"
+ (if (member "IMAP4REV1"
(nnimap-capabilities nnimap-object))
"BODY.PEEK[HEADER.FIELDS %s]"
"RFC822.HEADER.LINES %s")
(error "Unable to login to the server: %s"
(mapconcat #'identity (cadr result) " ")))
(setf (nnimap-capabilities nnimap-object)
- (or (nnimap-find-parameter "CAPABILITY" (cdr result))
- (nnimap-find-parameter
- "CAPABILITY" (cdr (nnimap-command "CAPABILITY")))))
+ (mapcar
+ #'upcase
+ (or (nnimap-find-parameter "CAPABILITY" (cdr result))
+ (nnimap-find-parameter
+ "CAPABILITY" (cdr (nnimap-command "CAPABILITY"))))))
(when (member "QRESYNC" (nnimap-capabilities nnimap-object))
(nnimap-command "ENABLE QRESYNC"))
t)))))
(erase-buffer)
(setq result
(nnimap-command
- (if (member "IMAP4rev1" (nnimap-capabilities nnimap-object))
+ (if (member "IMAP4REV1" (nnimap-capabilities nnimap-object))
"UID FETCH %d BODY.PEEK[]"
"UID FETCH %d RFC822.PEEK")
article)))
(nnimap-article-ranges articles)
(format "(UID %s%s)"
(format
- (if (member "IMAP4rev1"
+ (if (member "IMAP4REV1"
(nnimap-capabilities nnimap-object))
"BODY.PEEK[HEADER] BODY.PEEK"
"RFC822.PEEK"))