forked from Silverfish/proton-bridge
GODT-965 MOVE command should end with error for All Mail
This commit is contained in:
committed by
Jakub Cuth
parent
a4a29cbf82
commit
8d6e55ba54
@ -266,6 +266,10 @@ func (im *imapMailbox) labelMessages(uid bool, seqSet *imap.SeqSet, targetLabel
|
||||
}
|
||||
return errors.New("move from Sent to Inbox is not allowed")
|
||||
}
|
||||
// Moving from All Mail is not allowed.
|
||||
if im.storeMailbox.LabelID() == pmapi.AllMailLabel {
|
||||
return errors.New("move from All Mail is not allowed")
|
||||
}
|
||||
|
||||
deletedIDs := []string{}
|
||||
allDeletedIDs, err := im.storeMailbox.GetDeletedAPIIDs()
|
||||
|
||||
Reference in New Issue
Block a user