Fix article moving from nnimap to other servers.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 20 Sep 2010 16:35:18 +0000 (18:35 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Mon, 20 Sep 2010 16:35:18 +0000 (18:35 +0200)
When moving an article from nnimap, request the article first so the
accepting form has an article to accept.  Reported by Dan Christensen.

lisp/ChangeLog
lisp/nnimap.el

index 278d4ea..e93300e 100644 (file)
@@ -5,6 +5,9 @@
        (nnimap-request-delete-group): Implement group deletion.
        (nnimap-transform-headers): Return the size of the entire message in
        the Bytes header, not just the size of the first part.
+       (nnimap-request-move-article): When moving an article from nnimap,
+       request the article first so the accepting form has an article to
+       accept.  Reported by Dan Christensen.
 
 2010-09-20  David Edmondson  <dme@dme.org>  (tiny change)
 
index f9eaf17..cc6f4f8 100644 (file)
@@ -472,10 +472,11 @@ textual parts.")
                    (nnimap-find-article-by-message-id
                     internal-move-group message-id))))
        (with-temp-buffer
-         (let ((result (eval accept-form)))
-           (when result
-             (nnimap-delete-article article)
-             result)))))))
+         (when (nnimap-request-article article group server (current-buffer))
+           (let ((result (eval accept-form)))
+             (when result
+               (nnimap-delete-article article)
+               result))))))))
 
 (deffoo nnimap-request-expire-articles (articles group &optional server force)
   (cond