fix(GODT-2759): Use examine rather than select for fetching

When fetching messages in the debug mailbox state command, use read only
mode to avoid modifying the mailbox state.
This commit is contained in:
Leander Beernaert
2023-08-08 09:02:47 +02:00
parent 84adbbc461
commit a9865976a3
3 changed files with 5 additions and 2 deletions

View File

@ -230,7 +230,7 @@ func (bridge *Bridge) DebugDownloadFailedMessages(
}
func clientGetMessageIDs(client *goimapclient.Client, mailbox string) (map[string]imap.FlagSet, error) {
status, err := client.Select(mailbox, false)
status, err := client.Select(mailbox, true)
if err != nil {
return nil, err
}