2007-12-03 Nathan J. Williams <nathanw@MIT.EDU>
authorSimon Josefsson <jas@extundo.com>
Mon, 3 Dec 2007 17:54:55 +0000 (17:54 +0000)
committerSimon Josefsson <jas@extundo.com>
Mon, 3 Dec 2007 17:54:55 +0000 (17:54 +0000)
* imap.el (imap-mailbox-status-asynch): Upcase STATUS items.
(imap-parse-status): Upcase status-att for broken servers that sends
them lower-case (e.g., MS Exchange 2007).

lisp/ChangeLog
lisp/imap.el

index 5684001..980f74e 100644 (file)
@@ -1,3 +1,9 @@
+2007-12-03  Nathan J. Williams  <nathanw@MIT.EDU>
+
+       * imap.el (imap-mailbox-status-asynch): Upcase STATUS items.
+       (imap-parse-status): Upcase status-att for broken servers that sends
+       them lower-case (e.g., MS Exchange 2007).
+
 2007-12-03  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-uu.el (gnus-uu-decode-yenc): New command.
index 7643ef4..703218f 100644 (file)
@@ -1526,10 +1526,11 @@ or 'unseen.  The IMAP command tag is returned."
     (imap-send-command (list "STATUS \""
                             (imap-utf7-encode mailbox)
                             "\" "
-                            (format "%s"
-                                    (if (listp items)
-                                        items
-                                      (list items)))))))
+                            (upcase
+                             (format "%s"
+                                     (if (listp items)
+                                         items
+                                       (list items))))))))
 
 (defun imap-mailbox-acl-get (&optional mailbox buffer)
   "Get ACL on mailbox from server in BUFFER."
@@ -2517,7 +2518,7 @@ Return nil if no complete line has arrived."
       (while (and (not (eq (char-after) ?\)))
                  (or (forward-char) t)
                  (looking-at "\\([A-Za-z]+\\) "))
-       (let ((token (match-string 1)))
+       (let ((token (upcase (match-string 1))))
          (goto-char (match-end 0))
          (cond ((string= token "MESSAGES")
                 (imap-mailbox-put 'messages (read (current-buffer)) mailbox))