From eeeabdc6de9da2d4b2d0a3bce8cd1a000ffaa2ff Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Sat, 29 Mar 2025 20:16:05 +0100 Subject: [PATCH] fix build with previous commit that didn't sync frontend not at my sharpest... --- webmail/api.json | 2 +- webmail/api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/webmail/api.json b/webmail/api.json index 1ebd035..ed1bca7 100644 --- a/webmail/api.json +++ b/webmail/api.json @@ -2608,7 +2608,7 @@ }, { "Name": "Preview", - "Docs": "If non-nil, a preview of the message based on text and/or html parts of the message. Used in the webmail and IMAP PREVIEW extension. If non-nil, it is empty if no preview could be created, or the message has not textual content or couldn't be parsed. Previews are typically created when delivering a message, but not when importing messages, for speed. Previews are generated on first request (in the webmail, or 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 \"[...]\".", + "Docs": "If non-nil, a preview of the message based on text and/or html parts of the message. Used in the webmail and IMAP PREVIEW extension. If non-nil, it is empty if no preview could be created, or the message has not textual content or couldn't be parsed. Previews are typically created when delivering a message, but not when importing messages, for speed. Previews are generated on first request (in the webmail, or 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 \"[...]\". Previews typically end with a newline, callers may want to strip whitespace.", "Typewords": [ "nullable", "string" diff --git a/webmail/api.ts b/webmail/api.ts index 35df357..59a4430 100644 --- a/webmail/api.ts +++ b/webmail/api.ts @@ -377,7 +377,7 @@ export interface Message { Size: number TrainedJunk?: boolean | null // If nil, no training done yet. Otherwise, true is trained as junk, false trained as nonjunk. MsgPrefix?: string | null // Typically holds received headers and/or header separator. - Preview?: string | null // If non-nil, a preview of the message based on text and/or html parts of the message. Used in the webmail and IMAP PREVIEW extension. If non-nil, it is empty if no preview could be created, or the message has not textual content or couldn't be parsed. Previews are typically created when delivering a message, but not when importing messages, for speed. Previews are generated on first request (in the webmail, or 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 "[...]". + Preview?: string | null // If non-nil, a preview of the message based on text and/or html parts of the message. Used in the webmail and IMAP PREVIEW extension. If non-nil, it is empty if no preview could be created, or the message has not textual content or couldn't be parsed. Previews are typically created when delivering a message, but not when importing messages, for speed. Previews are generated on first request (in the webmail, or 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 "[...]". Previews typically end with a newline, callers may want to strip whitespace. ParsedBuf?: string | null // ParsedBuf message structure. Currently saved as JSON of message.Part because bstore cannot yet store recursive types. Created when first needed, and saved in the database. todo: once replaced with non-json storage, remove date fixup in ../message/part.go. }