Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodiImapServerPolicy.MoveMessages

function MoveMessages(const aSession: tImapSession; const aIndices: TArray<Integer>; const aFolder: string; out aUidValidity: Cardinal; out aSrcUids, aDstUids: TArray<Cardinal>; out aRemoved: TArray<Integer>; var aWhy: string; out aTryCreate: Boolean): Boolean;
MOVE and UID MOVE (RFC 6851). As CopyMessages, and each message that reached aFolder leaves the selected mailbox, without \Deleted ever being set on it and whatever \Deleted the others carry. aSrcUids and aDstUids name the messages that moved; aRemoved are their sequence numbers, DESCENDING, also when the answer is False because some did not move. A message that did not move must be left where it was.