From 5677f93ff8e0f212be112a110fcfe09663c84f98 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Wed, 21 Dec 2022 11:31:04 +0100 Subject: model: change flags array to bitmask Using a list of integers is not optimal. Use a bit mask instead. Signed-off-by: Robin Jarry Acked-by: Tim Culverhouse --- worker/mbox/io.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'worker/mbox/io.go') diff --git a/worker/mbox/io.go b/worker/mbox/io.go index 31a906cc..2fe39813 100644 --- a/worker/mbox/io.go +++ b/worker/mbox/io.go @@ -28,7 +28,7 @@ func Read(r io.Reader) ([]lib.RawMessage, error) { } messages = append(messages, &message{ - uid: uid, flags: []models.Flag{models.SeenFlag}, content: content, + uid: uid, flags: models.SeenFlag, content: content, }) uid++ -- cgit