finance-mgn - v1.4.1
    Preparing search index...
    • Fetches emails from the IMAP server based on the provided search criteria.

      Parameters

      • connection: ImapSimple

        The IMAP connection object.

      • searchCriteria: (string | (undefined | string)[])[]

        The search criteria for fetching emails.

      Returns Promise<Message[]>

      A promise that resolves to an array of fetched emails.

      An error if fetching emails fails.