Include flags when fetching items over IMAP

This commit is contained in:
Dejan Strbac 2020-01-13 19:59:36 +01:00 committed by Simon Ser
parent 425445f443
commit 15a77185b4
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

2
plugins/base/imap.go Normal file → Executable file
View file

@ -201,7 +201,7 @@ func listMessages(conn *imapclient.Client, mboxName string, page int) ([]IMAPMes
var seqSet imap.SeqSet
seqSet.AddRange(uint32(from), uint32(to))
fetch := []imap.FetchItem{imap.FetchEnvelope, imap.FetchUid, imap.FetchBodyStructure}
fetch := []imap.FetchItem{imap.FetchFlags, imap.FetchEnvelope, imap.FetchUid, imap.FetchBodyStructure}
ch := make(chan *imap.Message, 10)
done := make(chan error, 1)