diff options
| author | Elias Oltmanns | 2015-01-28 16:35:59 +1100 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2015-01-28 16:35:59 +1100 |
| commit | 0cdd599c54aeda36e7e0696b2f90d2c286153a1d (patch) | |
| tree | 8a6f72eec9774fc50819d244fc1c8c41daa2ce1b | |
| parent | 5491fd1098d27b3ba3db054076b9ab60fb3558dc (diff) | |
| download | emacs-0cdd599c54aeda36e7e0696b2f90d2c286153a1d.tar.gz emacs-0cdd599c54aeda36e7e0696b2f90d2c286153a1d.zip | |
nnimap `never' expiration fix
* nnimap.el (nnimap-find-expired-articles): Fix handling of
(expiry-wait . never).
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 28 |
2 files changed, 19 insertions, 14 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 7bf4a6e01d6..49d1444de69 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-01-28 Elias Oltmanns <eo@nebensachen.de> | ||
| 2 | |||
| 3 | * nnimap.el (nnimap-find-expired-articles): Fix handling of | ||
| 4 | (expiry-wait . never). | ||
| 5 | |||
| 1 | 2015-01-27 Lars Ingebrigtsen <larsi@gnus.org> | 6 | 2015-01-27 Lars Ingebrigtsen <larsi@gnus.org> |
| 2 | 7 | ||
| 3 | * nnir.el (nnir-imap-expr-to-imap): Check for literal+ capability in | 8 | * nnir.el (nnir-imap-expr-to-imap): Check for literal+ capability in |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 8e81abcf9c0..ba2013e2798 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -1020,20 +1020,20 @@ textual parts.") | |||
| 1020 | 1020 | ||
| 1021 | (defun nnimap-find-expired-articles (group) | 1021 | (defun nnimap-find-expired-articles (group) |
| 1022 | (let ((cutoff (nnmail-expired-article-p group nil nil))) | 1022 | (let ((cutoff (nnmail-expired-article-p group nil nil))) |
| 1023 | (with-current-buffer (nnimap-buffer) | 1023 | (when cutoff |
| 1024 | (let ((result | 1024 | (with-current-buffer (nnimap-buffer) |
| 1025 | (nnimap-command | 1025 | (let ((result |
| 1026 | "UID SEARCH SENTBEFORE %s" | 1026 | (nnimap-command |
| 1027 | (format-time-string | 1027 | "UID SEARCH SENTBEFORE %s" |
| 1028 | (format "%%d-%s-%%Y" | 1028 | (format-time-string |
| 1029 | (upcase | 1029 | (format "%%d-%s-%%Y" |
| 1030 | (car (rassoc (nth 4 (decode-time cutoff)) | 1030 | (upcase |
| 1031 | parse-time-months)))) | 1031 | (car (rassoc (nth 4 (decode-time cutoff)) |
| 1032 | cutoff)))) | 1032 | parse-time-months)))) |
| 1033 | (and (car result) | 1033 | cutoff)))) |
| 1034 | (delete 0 (mapcar #'string-to-number | 1034 | (and (car result) |
| 1035 | (cdr (assoc "SEARCH" (cdr result)))))))))) | 1035 | (delete 0 (mapcar #'string-to-number |
| 1036 | 1036 | (cdr (assoc "SEARCH" (cdr result))))))))))) | |
| 1037 | 1037 | ||
| 1038 | (defun nnimap-find-article-by-message-id (group server message-id | 1038 | (defun nnimap-find-article-by-message-id (group server message-id |
| 1039 | &optional limit) | 1039 | &optional limit) |