(nnimap-find-uid-response): The UID is the last element in the list.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 26 Nov 2010 01:21:38 +0000 (02:21 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 26 Nov 2010 01:21:38 +0000 (02:21 +0100)
lisp/ChangeLog
lisp/nnimap.el

index 1f565fb..83e4c40 100644 (file)
@@ -6,6 +6,7 @@
        (nnimap-request-accept-article): Use the UID returned, if any.
        (nnimap-request-move-article): Use the UID returned, if any.
        (nnimap-get-groups): Reimplement to work with folded lines.
+       (nnimap-find-uid-response): The UID is the last element in the list.
 
 2010-11-25  Katsumi Yamaoka  <yamaoka@jpl.org>
 
index 63a1115..97889bb 100644 (file)
@@ -984,7 +984,7 @@ textual parts.")
                       group message-id)))))))))
 
 (defun nnimap-find-uid-response (name list)
-  (let ((result (nth 2 (nnimap-find-response-element name list))))
+  (let ((result (car (last (nnimap-find-response-element name list)))))
     (and result
         (string-to-number result))))