diff options
| author | Eric Abrahamsen | 2015-02-18 22:25:22 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2015-02-18 22:25:22 +0000 |
| commit | 0a1c83457d209fcf08c741a5e50bd60b72fd8713 (patch) | |
| tree | 158060dd3dc21bdcb0a4aeaec598b6647616e967 | |
| parent | 7932d062cf85c2c37bd15b22be30a65c034001fc (diff) | |
| download | emacs-0a1c83457d209fcf08c741a5e50bd60b72fd8713.tar.gz emacs-0a1c83457d209fcf08c741a5e50bd60b72fd8713.zip | |
Handle unquoted IMAP group names
* lisp/gnus/nnimap.el (nnimap-get-groups): Correctly read unquoted
group names from the server LIST response.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 7910d74fb15..7895f378b82 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-02-18 Eric Abrahamsen <eric@ericabrahamsen.net> | ||
| 2 | |||
| 3 | * nnimap.el (nnimap-get-groups): Correctly read unquoted group names | ||
| 4 | from the server LIST response. | ||
| 5 | |||
| 1 | 2015-02-14 Lars Ingebrigtsen <larsi@gnus.org> | 6 | 2015-02-14 Lars Ingebrigtsen <larsi@gnus.org> |
| 2 | 7 | ||
| 3 | * nnimap.el (nnimap-retrieve-headers): If the server closes connection | 8 | * nnimap.el (nnimap-retrieve-headers): If the server closes connection |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 4a9ca744b9f..6904e0a7259 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -1262,7 +1262,12 @@ If LIMIT, first try to limit the search to the N last articles." | |||
| 1262 | (while (search-forward "* LIST " nil t) | 1262 | (while (search-forward "* LIST " nil t) |
| 1263 | (let ((flags (read (current-buffer))) | 1263 | (let ((flags (read (current-buffer))) |
| 1264 | (separator (read (current-buffer))) | 1264 | (separator (read (current-buffer))) |
| 1265 | (group (read (current-buffer)))) | 1265 | (group (buffer-substring-no-properties |
| 1266 | (progn (skip-chars-forward " \"") | ||
| 1267 | (point)) | ||
| 1268 | (progn (move-end-of-line 1) | ||
| 1269 | (skip-chars-backward " \"") | ||
| 1270 | (point))))) | ||
| 1266 | (unless (member '%NoSelect flags) | 1271 | (unless (member '%NoSelect flags) |
| 1267 | (push (utf7-decode (if (stringp group) | 1272 | (push (utf7-decode (if (stringp group) |
| 1268 | group | 1273 | group |