From 410b16f92d61196af54e91c9de1046246f44b28d Mon Sep 17 00:00:00 2001 From: Eric Abrahamsen Date: Wed, 2 Sep 2020 09:07:35 -0700 Subject: [PATCH] Handle different IMAP server responses to COPY and MOVE * lisp/gnus/nnimap.el (nnimap-request-move-article): Need to examine different parts of the result. --- lisp/gnus/nnimap.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el index be8ad9a6723..507e12a55e7 100644 --- a/lisp/gnus/nnimap.el +++ b/lisp/gnus/nnimap.el @@ -986,7 +986,10 @@ textual parts.") (when (and (car result) (not can-move)) (nnimap-delete-article article)) (cons internal-move-group - (or (nnimap-find-uid-response "COPYUID" (caddr result)) + (or (nnimap-find-uid-response + "COPYUID" + ;; Server gives different responses for MOVE and COPY. + (if can-move (caddr result) (cadr result))) (nnimap-find-article-by-message-id internal-move-group server message-id nnimap-request-articles-find-limit))))) -- 2.39.2