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

@ -569,7 +569,8 @@ type Message struct {
// through the IMAP fetch attribute "PREVIEW" (without "LAZY")), and stored with
// the message at that time.
// The preview is at most 256 characters (can be more bytes), with detected quoted
// text replaced with "[..."].
// text replaced with "[...]". Previews typically end with a newline, callers may
// want to strip whitespace.
Preview *string
// ParsedBuf message structure. Currently saved as JSON of message.Part because bstore