fix(GODT-2323): Fix Expunge not issued for move

When moving between system labels the expunge commands were not being
issued.
This commit is contained in:
Leander Beernaert
2023-02-01 15:53:27 +01:00
committed by Jakub
parent 4876314cf5
commit 43100d11bf
4 changed files with 27 additions and 4 deletions

View File

@ -443,7 +443,7 @@ func (conn *imapConnector) MoveMessages(ctx context.Context, messageIDs []imap.M
result = result || true
}
if v, ok := conn.apiLabels[string(labelToID)]; ok && v.Type == proton.LabelTypeFolder {
if v, ok := conn.apiLabels[string(labelToID)]; ok && (v.Type == proton.LabelTypeFolder || v.Type == proton.LabelTypeSystem) {
result = result || true
}