[gnus git] branch master updated: m0-11-129-g6bf0b14 =1= nnimap.el (nnimap-find-expired-articles): nnimap `never' expiration fix

Katsumi <[email protected]> Wed, 28 Jan 2015 08:01:53 +0100
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  6bf0b14d55ac93a35e2444c09cc2d6c060d1fb54 (commit)
      from  c2b17919646859aef0e1d329e052dadbbf042eca (commit)


- Log -----------------------------------------------------------------
commit 6bf0b14d55ac93a35e2444c09cc2d6c060d1fb54
Author: Elias Oltmanns <[email protected]>
Date:   Wed Jan 28 07:01:53 2015 +0000

    nnimap.el (nnimap-find-expired-articles): nnimap `never' expiration fix

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 52177b7..2291cb9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-28  Elias Oltmanns  <[email protected]>
+
+	* nnimap.el (nnimap-find-expired-articles): Fix handling of
+	(expiry-wait . never).
+
 2015-01-28  Lars Ingebrigtsen  <[email protected]>
 
 	* nnimap.el (nnimap-request-group): Clear the buffer before returning
diff --git a/lisp/nnimap.el b/lisp/nnimap.el
index 205f92c..e619c0f 100644
--- a/lisp/nnimap.el
+++ b/lisp/nnimap.el
@@ -1021,6 +1021,7 @@ textual parts.")
 
 (defun nnimap-find-expired-articles (group)
   (let ((cutoff (nnmail-expired-article-p group nil nil)))
+    (when cutoff
       (with-current-buffer (nnimap-buffer)
 	(let ((result
 	       (nnimap-command
@@ -1033,8 +1034,7 @@ textual parts.")
 		 cutoff))))
 	  (and (car result)
 	       (delete 0 (mapcar #'string-to-number
-			       (cdr (assoc "SEARCH" (cdr result))))))))))
-
+				 (cdr (assoc "SEARCH" (cdr result)))))))))))
 
 (defun nnimap-find-article-by-message-id (group server message-id
 						&optional limit)

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog |    5 +++++
 lisp/nnimap.el |   28 ++++++++++++++--------------
 2 files changed, 19 insertions(+), 14 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project