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 13:05:39 +02:00
parent 519a6ecdb7
commit ded4f370dc
1 changed files with 1 additions and 1 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
}