From: Lars Magne Ingebrigtsen Date: Fri, 26 Nov 2010 01:21:38 +0000 (+0100) Subject: (nnimap-find-uid-response): The UID is the last element in the list. X-Git-Url: https://cgit.sxemacs.org/?a=commitdiff_plain;h=f5e8274d279cd377eaf65addc3535ef48c1def2a;p=gnus (nnimap-find-uid-response): The UID is the last element in the list. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1f565fb9b..83e4c4038 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 diff --git a/lisp/nnimap.el b/lisp/nnimap.el index 63a1115bd..97889bb0a 100644 --- a/lisp/nnimap.el +++ b/lisp/nnimap.el @@ -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))))