diff options
| author | Lars Magne Ingebrigtsen | 2010-11-26 01:27:37 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-11-26 01:27:37 +0000 |
| commit | 17dd22813f2fbf929a6e8e75966d097a6f4a2334 (patch) | |
| tree | b6c5aa8e755c9bc237ec56dad0ac06c9982b93e1 | |
| parent | cccb4b4ccd7c92b0b976127ee85b6524c0ab2e97 (diff) | |
| download | emacs-17dd22813f2fbf929a6e8e75966d097a6f4a2334.tar.gz emacs-17dd22813f2fbf929a6e8e75966d097a6f4a2334.zip | |
nnimap.el (nnimap-find-uid-response): The UID is the last element in the list.
| -rw-r--r-- | lisp/gnus/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 85c9ffb7b9f..7769a9c6131 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | (nnimap-request-accept-article): Use the UID returned, if any. | 6 | (nnimap-request-accept-article): Use the UID returned, if any. |
| 7 | (nnimap-request-move-article): Use the UID returned, if any. | 7 | (nnimap-request-move-article): Use the UID returned, if any. |
| 8 | (nnimap-get-groups): Reimplement to work with folded lines. | 8 | (nnimap-get-groups): Reimplement to work with folded lines. |
| 9 | (nnimap-find-uid-response): The UID is the last element in the list. | ||
| 9 | 10 | ||
| 10 | 2010-11-25 Katsumi Yamaoka <yamaoka@jpl.org> | 11 | 2010-11-25 Katsumi Yamaoka <yamaoka@jpl.org> |
| 11 | 12 | ||
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 63a1115bd0f..97889bb0a64 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -984,7 +984,7 @@ textual parts.") | |||
| 984 | group message-id))))))))) | 984 | group message-id))))))))) |
| 985 | 985 | ||
| 986 | (defun nnimap-find-uid-response (name list) | 986 | (defun nnimap-find-uid-response (name list) |
| 987 | (let ((result (nth 2 (nnimap-find-response-element name list)))) | 987 | (let ((result (car (last (nnimap-find-response-element name list))))) |
| 988 | (and result | 988 | (and result |
| 989 | (string-to-number result)))) | 989 | (string-to-number result)))) |
| 990 | 990 | ||