>From cfb7b8feefeef69ed855e90f700aef6d1b7fda39 Mon Sep 17 00:00:00 2001 From: "Eric (clem)" Date: Sat, 14 Feb 2015 18:39:10 +0800 Subject: [PATCH] Handle unquoted IMAP group names * lisp/nnimap.el (nnimap-get-groups): Correctly read unquoted group names from the server LIST response. --- lisp/nnimap.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/nnimap.el b/lisp/nnimap.el index d8b49f7..2d6a55e 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -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 " \"") + (point))))) (unless (member '%NoSelect flags) (push (utf7-decode (if (stringp group) group -- 2.3.0