aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElias Oltmanns2015-01-29 01:20:00 +0000
committerKatsumi Yamaoka2015-01-29 01:20:00 +0000
commit9ee2d9f92a9097c468fb4e938a14b2f569feb453 (patch)
treecb338c7e115f4d0ec61dc04bb1d0830a6166325f
parentad588afdaa166bcdacbf9f746bd4d39b2c649768 (diff)
downloademacs-9ee2d9f92a9097c468fb4e938a14b2f569feb453.tar.gz
emacs-9ee2d9f92a9097c468fb4e938a14b2f569feb453.zip
[Backport] lisp/gnus/nnimap.el (nnimap-find-expired-articles): nnimap `never' expiration fix
-rw-r--r--lisp/gnus/ChangeLog7
-rw-r--r--lisp/gnus/nnimap.el27
2 files changed, 20 insertions, 14 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 2bdbfcc5c23..d0a68b7f0ce 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,10 +1,15 @@
12015-01-28 Elias Oltmanns <eo@nebensachen.de>
2
3 * nnimap.el (nnimap-find-expired-articles): Fix handling of
4 (expiry-wait . never).
5
12014-12-19 Andreas Schwab <schwab@linux-m68k.org> 62014-12-19 Andreas Schwab <schwab@linux-m68k.org>
2 7
3 * gnus-group.el (gnus-read-ephemeral-bug-group): Bind 8 * gnus-group.el (gnus-read-ephemeral-bug-group): Bind
4 coding-system-for-read and coding-system-for-write only around 9 coding-system-for-read and coding-system-for-write only around
5 with-temp-file, and make buffer unibyte. Don't write temp file twice. 10 with-temp-file, and make buffer unibyte. Don't write temp file twice.
6 11
72014-11-26 John Mastro <john.b.mastro@gmail.com> (tiny change) 122014-11-26 John Mastro <john.b.mastro@gmail.com> (tiny change)
8 13
9 * auth-source.el (auth-source-macos-keychain-search-items): Return 14 * auth-source.el (auth-source-macos-keychain-search-items): Return
10 result of `auth-source-macos-keychain-result-append' (bug#19074). 15 result of `auth-source-macos-keychain-result-append' (bug#19074).
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 8ed5143b243..199cf4eb740 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -979,19 +979,20 @@ textual parts.")
979 979
980(defun nnimap-find-expired-articles (group) 980(defun nnimap-find-expired-articles (group)
981 (let ((cutoff (nnmail-expired-article-p group nil nil))) 981 (let ((cutoff (nnmail-expired-article-p group nil nil)))
982 (with-current-buffer (nnimap-buffer) 982 (when cutoff
983 (let ((result 983 (with-current-buffer (nnimap-buffer)
984 (nnimap-command 984 (let ((result
985 "UID SEARCH SENTBEFORE %s" 985 (nnimap-command
986 (format-time-string 986 "UID SEARCH SENTBEFORE %s"
987 (format "%%d-%s-%%Y" 987 (format-time-string
988 (upcase 988 (format "%%d-%s-%%Y"
989 (car (rassoc (nth 4 (decode-time cutoff)) 989 (upcase
990 parse-time-months)))) 990 (car (rassoc (nth 4 (decode-time cutoff))
991 cutoff)))) 991 parse-time-months))))
992 (and (car result) 992 cutoff))))
993 (delete 0 (mapcar #'string-to-number 993 (and (car result)
994 (cdr (assoc "SEARCH" (cdr result)))))))))) 994 (delete 0 (mapcar #'string-to-number
995 (cdr (assoc "SEARCH" (cdr result)))))))))))
995 996
996 997
997(defun nnimap-find-article-by-message-id (group server message-id 998(defun nnimap-find-article-by-message-id (group server message-id