MBOX-Line: From arnt at gulbrandsen.priv.no Tue May 26 10:07:15 2015 To: imap-protocol@u.washington.edu From: Arnt Gulbrandsen Date: Fri Jun 8 12:34:55 2018 Subject: [Imap-protocol] COPYUID message order In-Reply-To: <55641351.8030608@ymail.com> References: <555FBFD2.1030800@ymail.com> <555FD141.1060300@ymail.com> <55641351.8030608@ymail.com> Message-ID: <23e30726-1ae2-46da-abba-e50cdf1d3359@gulbrandsen.priv.no> Bill Shannon writes: > I'd like to be able to report the status of each message that > was requested to be copied. If one of the messages was not > copied for some reason, and so is left out of the returned list > of source UIDs, how do I figure out which one that was? Without > a complete map from sequence number to UID, it seems that the > COPYUID response code for the simple COPY command may not be > sufficient. True. For that case you'll need to issue "FETCH ... UID" and then "COPY ... target" (without waiting). When you have received tagged responses for both, you know that your MSN-UID map is contains all the necessary UIDs and you can process the COPYUID response code completely. Arnt