imapserver: fix storing previews when requested over imap and they are missing from the database

found while testing.
This commit is contained in:
Mechiel Lukkien
2025-03-29 20:13:10 +01:00
parent 6ab31c15b7
commit 3ac38aacca
5 changed files with 41 additions and 14 deletions

View File

@ -143,7 +143,7 @@ func (c *conn) cmdxFetch(isUID bool, tag, cmdstr string, p *parser) {
var uids []store.UID
var vanishedUIDs []store.UID
cmd := &fetchCmd{conn: c, isUID: isUID, hasChangedSince: haveChangedSince}
cmd := &fetchCmd{conn: c, isUID: isUID, hasChangedSince: haveChangedSince, newPreviews: map[store.UID]string{}}
defer func() {
if cmd.rtx == nil {