jmap-kit
    Preparing search index...

    A SearchSnippet object represents a relevant section of the body that matches a search, along with any matching terms highlighted in the subject.

    Note that unlike most data types, a SearchSnippet DOES NOT have a property called id.

    type SearchSnippetObject = {
        emailId: Id;
        preview: string | null;
        subject: string | null;
    }
    Index

    Properties

    emailId: Id

    The Email id the snippet applies to.

    preview: string | null

    If text from the filter matches the plaintext or HTML body, this is the relevant section of the body (converted to plaintext if originally HTML), with the same transformations as the subject property. It MUST NOT be bigger than 255 octets in size. If the body does not contain a match for the text from the filter, this property is null.

    subject: string | null

    If text from the filter matches the subject, this is the subject of the Email with the following transformations:

    1. Any instance of &, <, and > MUST be replaced by an appropriate HTML entity. Other characters MAY also be replaced with an HTML entity form.

    2. The matching words/phrases from the filter are wrapped in HTML <mark></mark> tags.

    If the subject does not match text from the filter, this property is null.