diff options
| author | Lars Ingebrigtsen | 2014-03-07 18:21:35 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2014-03-07 18:21:35 +0100 |
| commit | d67d60a2eab5f7f1f9b1d31cd1c7dd1e31bb4d2b (patch) | |
| tree | 74169035e4e3af8e8363b80ffcec946dfe29261c | |
| parent | 45e2ca143dd3b4fcd418f6e055996c027f9e47d4 (diff) | |
| download | emacs-d67d60a2eab5f7f1f9b1d31cd1c7dd1e31bb4d2b.tar.gz emacs-d67d60a2eab5f7f1f9b1d31cd1c7dd1e31bb4d2b.zip | |
nnimap respool fix
* nnimap.el (nnimap-request-accept-article): Make respooling to nnimap
groups work again.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/nnimap.el | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 6052ca34d78..cdf22ef256a 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-03-07 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * nnimap.el (nnimap-request-accept-article): Make respooling to nnimap | ||
| 4 | groups work again. | ||
| 5 | |||
| 1 | 2014-03-07 George McNinch <gmcninch@gmail.com> (tiny change) | 6 | 2014-03-07 George McNinch <gmcninch@gmail.com> (tiny change) |
| 2 | 7 | ||
| 3 | * nnir.el (nnir-run-namazu): Parse namazu results that are larger than | 8 | * nnir.el (nnir-run-namazu): Parse namazu results that are larger than |
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index 2dcdcd0a391..2fc2dd6af79 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el | |||
| @@ -1099,6 +1099,14 @@ If LIMIT, first try to limit the search to the N last articles." | |||
| 1099 | (nnimap-wait-for-response sequence)))))) | 1099 | (nnimap-wait-for-response sequence)))))) |
| 1100 | 1100 | ||
| 1101 | (deffoo nnimap-request-accept-article (group &optional server last) | 1101 | (deffoo nnimap-request-accept-article (group &optional server last) |
| 1102 | (unless group | ||
| 1103 | ;; We're respooling. Find out where mail splitting would place | ||
| 1104 | ;; this article. | ||
| 1105 | (setq group | ||
| 1106 | (caar | ||
| 1107 | (nnmail-article-group | ||
| 1108 | `(lambda (group) | ||
| 1109 | (nnml-active-number group ,server)))))) | ||
| 1102 | (setq group (nnimap-decode-gnus-group group)) | 1110 | (setq group (nnimap-decode-gnus-group group)) |
| 1103 | (when (nnimap-change-group nil server) | 1111 | (when (nnimap-change-group nil server) |
| 1104 | (nnmail-check-syntax) | 1112 | (nnmail-check-syntax) |