mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 18:40:39 -08:00
nnimap `never' expiration fix
* nnimap.el (nnimap-find-expired-articles): Fix handling of (expiry-wait . never).
This commit is contained in:
parent
5491fd1098
commit
0cdd599c54
2 changed files with 19 additions and 14 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
2015-01-28 Elias Oltmanns <eo@nebensachen.de>
|
||||||
|
|
||||||
|
* nnimap.el (nnimap-find-expired-articles): Fix handling of
|
||||||
|
(expiry-wait . never).
|
||||||
|
|
||||||
2015-01-27 Lars Ingebrigtsen <larsi@gnus.org>
|
2015-01-27 Lars Ingebrigtsen <larsi@gnus.org>
|
||||||
|
|
||||||
* nnir.el (nnir-imap-expr-to-imap): Check for literal+ capability in
|
* nnir.el (nnir-imap-expr-to-imap): Check for literal+ capability in
|
||||||
|
|
|
||||||
|
|
@ -1020,20 +1020,20 @@ textual parts.")
|
||||||
|
|
||||||
(defun nnimap-find-expired-articles (group)
|
(defun nnimap-find-expired-articles (group)
|
||||||
(let ((cutoff (nnmail-expired-article-p group nil nil)))
|
(let ((cutoff (nnmail-expired-article-p group nil nil)))
|
||||||
(with-current-buffer (nnimap-buffer)
|
(when cutoff
|
||||||
(let ((result
|
(with-current-buffer (nnimap-buffer)
|
||||||
(nnimap-command
|
(let ((result
|
||||||
"UID SEARCH SENTBEFORE %s"
|
(nnimap-command
|
||||||
(format-time-string
|
"UID SEARCH SENTBEFORE %s"
|
||||||
(format "%%d-%s-%%Y"
|
(format-time-string
|
||||||
(upcase
|
(format "%%d-%s-%%Y"
|
||||||
(car (rassoc (nth 4 (decode-time cutoff))
|
(upcase
|
||||||
parse-time-months))))
|
(car (rassoc (nth 4 (decode-time cutoff))
|
||||||
cutoff))))
|
parse-time-months))))
|
||||||
(and (car result)
|
cutoff))))
|
||||||
(delete 0 (mapcar #'string-to-number
|
(and (car result)
|
||||||
(cdr (assoc "SEARCH" (cdr result))))))))))
|
(delete 0 (mapcar #'string-to-number
|
||||||
|
(cdr (assoc "SEARCH" (cdr result)))))))))))
|
||||||
|
|
||||||
(defun nnimap-find-article-by-message-id (group server message-id
|
(defun nnimap-find-article-by-message-id (group server message-id
|
||||||
&optional limit)
|
&optional limit)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue