From 107843d58f5a869cc46a19e19c41ea817643b804 Mon Sep 17 00:00:00 2001 From: Jakub Cuth Date: Mon, 20 Sep 2021 14:35:47 +0000 Subject: [PATCH] GODT-966: return correct UID in response to APPEND to All Mail. --- internal/imap/mailbox_append.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/imap/mailbox_append.go b/internal/imap/mailbox_append.go index 3c6ec225..1694752f 100644 --- a/internal/imap/mailbox_append.go +++ b/internal/imap/mailbox_append.go @@ -185,7 +185,7 @@ func (im *imapMailbox) labelExistingMessage(msg storeMessageProvider) error { // return err } - return uidplus.AppendResponse(storeMBox.UIDValidity(), storeMBox.GetUIDList([]string{msg.ID()})) + return uidplus.AppendResponse(im.storeMailbox.UIDValidity(), im.storeMailbox.GetUIDList([]string{msg.ID()})) } func (im *imapMailbox) importMessage(kr *crypto.KeyRing, hdr textproto.Header, body []byte, imapFlags []string, date time.Time) error {