From e8c5bb641a9f31979bebf0f827befcfb4456bb9d Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Tue, 16 Aug 2022 16:23:37 -0500 Subject: [PATCH] worker: introduce MoveMessages type Introduce a MoveMessages worker message to use for improved message moving in subsequent patches. Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- worker/types/messages.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/worker/types/messages.go b/worker/types/messages.go index a414eb2..acd515f 100644 --- a/worker/types/messages.go +++ b/worker/types/messages.go @@ -165,6 +165,12 @@ type CopyMessages struct { Uids []uint32 } +type MoveMessages struct { + Message + Destination string + Uids []uint32 +} + type AppendMessage struct { Message Destination string @@ -231,6 +237,12 @@ type MessagesCopied struct { Uids []uint32 } +type MessagesMoved struct { + Message + Destination string + Uids []uint32 +} + type ModifyLabels struct { Message Uids []uint32