]> git.eshelyaron.com Git - emacs.git/commitdiff
Handle unquoted IMAP group names
authorEric Abrahamsen <eric@ericabrahamsen.net>
Wed, 18 Feb 2015 22:25:22 +0000 (22:25 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 18 Feb 2015 22:25:22 +0000 (22:25 +0000)
* lisp/gnus/nnimap.el (nnimap-get-groups): Correctly read unquoted
group names from the server LIST response.

lisp/gnus/ChangeLog
lisp/gnus/nnimap.el

index 7910d74fb15101a631ec2731314923694acdf35b..7895f378b82c3086307fcef11d940cd02bd72c22 100644 (file)
@@ -1,3 +1,8 @@
+2015-02-18  Eric Abrahamsen  <eric@ericabrahamsen.net>
+
+       * nnimap.el (nnimap-get-groups): Correctly read unquoted group names
+       from the server LIST response.
+
 2015-02-14  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * nnimap.el (nnimap-retrieve-headers): If the server closes connection
index 4a9ca744b9f69657877d529728b2b1d963fbd2a2..6904e0a72595b7bbc04a117e3d7a1f43c92894d7 100644 (file)
@@ -1262,7 +1262,12 @@ If LIMIT, first try to limit the search to the N last articles."
     (while (search-forward "* LIST " nil t)
       (let ((flags (read (current-buffer)))
            (separator (read (current-buffer)))
-           (group (read (current-buffer))))
+           (group (buffer-substring-no-properties
+                   (progn (skip-chars-forward " \"")
+                          (point))
+                   (progn (move-end-of-line 1)
+                          (skip-chars-backward " \r\"")
+                          (point)))))
        (unless (member '%NoSelect flags)
          (push (utf7-decode (if (stringp group)
                                 group