aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Abrahamsen2020-09-02 09:07:35 -0700
committerEric Abrahamsen2020-09-02 09:07:35 -0700
commit410b16f92d61196af54e91c9de1046246f44b28d (patch)
tree25323a72dece19176d506a48539548b2c1988c7f
parentdd2c37d0e1d5dcbcd2658b8a5b9959996a133373 (diff)
downloademacs-410b16f92d61196af54e91c9de1046246f44b28d.tar.gz
emacs-410b16f92d61196af54e91c9de1046246f44b28d.zip
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.
-rw-r--r--lisp/gnus/nnimap.el5
1 files changed, 4 insertions, 1 deletions
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.")
986 (when (and (car result) (not can-move)) 986 (when (and (car result) (not can-move))
987 (nnimap-delete-article article)) 987 (nnimap-delete-article article))
988 (cons internal-move-group 988 (cons internal-move-group
989 (or (nnimap-find-uid-response "COPYUID" (caddr result)) 989 (or (nnimap-find-uid-response
990 "COPYUID"
991 ;; Server gives different responses for MOVE and COPY.
992 (if can-move (caddr result) (cadr result)))
990 (nnimap-find-article-by-message-id 993 (nnimap-find-article-by-message-id
991 internal-move-group server message-id 994 internal-move-group server message-id
992 nnimap-request-articles-find-limit))))) 995 nnimap-request-articles-find-limit)))))