Support skipping tasks, for future filtering

This commit is contained in:
Ian Gulliver
2022-11-13 04:24:45 +00:00
parent 13a031a2ee
commit dea365584e
2 changed files with 7 additions and 5 deletions

View File

@@ -55,7 +55,7 @@ func (ic *ImapClient) Poll() ([]*Task, error) {
section := &imap.BodySectionName{}
msgs, err := ic.Fetch(seqset, []imap.FetchItem{section.FetchItem(), imap.FetchUid})
msgs, err := ic.Fetch(seqset, []imap.FetchItem{imap.FetchEnvelope, imap.FetchUid, section.FetchItem()})
if err != nil {
return nil, err
}