Workaround move/copy not copying flags

pull/217/head
M66B 6 months ago
parent b76a71520d
commit 01a9e7b8b2

@ -1633,7 +1633,7 @@ class Core {
} }
// Fetch appended/copied when needed // Fetch appended/copied when needed
boolean fetch = (copy || delete || boolean fetch = (copy || delete || !canMove ||
!"connected".equals(target.state) || !"connected".equals(target.state) ||
!MessageHelper.hasCapability(ifolder, "IDLE")); !MessageHelper.hasCapability(ifolder, "IDLE"));
if (draft || fetch) if (draft || fetch)
@ -1661,7 +1661,8 @@ class Core {
continue; continue;
} }
if (draft || duplicate) { if (draft || duplicate || !canMove) {
// https://datatracker.ietf.org/doc/html/rfc3501#section-6.4.7
Message icopy = itarget.getMessageByUID(uid); Message icopy = itarget.getMessageByUID(uid);
if (icopy == null) if (icopy == null)
throw new IllegalArgumentException("move: gone uid=" + uid); throw new IllegalArgumentException("move: gone uid=" + uid);

Loading…
Cancel
Save