Clean also All Mail and Drafts mailboxes before running integration test

This commit is contained in:
Michal Horejsek
2020-04-20 10:22:04 +02:00
parent 8f8fbc745d
commit 366a9d6d6c
2 changed files with 1 additions and 7 deletions

View File

@ -38,7 +38,7 @@ func cleanup(client *pmapi.Client) error {
}
func cleanSystemFolders(client *pmapi.Client) error {
for _, labelID := range []string{pmapi.InboxLabel, pmapi.SentLabel, pmapi.ArchiveLabel} {
for _, labelID := range []string{pmapi.InboxLabel, pmapi.SentLabel, pmapi.ArchiveLabel, pmapi.AllMailLabel, pmapi.DraftLabel} {
for {
messages, total, err := client.ListMessages(&pmapi.MessagesFilter{
PageSize: 150,