aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2010-11-26 01:27:37 +0000
committerKatsumi Yamaoka2010-11-26 01:27:37 +0000
commit17dd22813f2fbf929a6e8e75966d097a6f4a2334 (patch)
treeb6c5aa8e755c9bc237ec56dad0ac06c9982b93e1
parentcccb4b4ccd7c92b0b976127ee85b6524c0ab2e97 (diff)
downloademacs-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/ChangeLog1
-rw-r--r--lisp/gnus/nnimap.el2
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
102010-11-25 Katsumi Yamaoka <yamaoka@jpl.org> 112010-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