pai
    Preparing search index...

    Function mailList

    • The newest messages in a folder (INBOX by default), newest first, over IMAP. query matches words in the subject or body. 20 by default.

      Parameters

      • env: Env
      • opts: {
            folder?: string;
            from?: string;
            limit?: number;
            query?: string;
            unread?: boolean;
        } = {}
      • Optionalunsaved: MailConfig

        A login not saved yet, so mail setup can check it first.

      Returns Promise<{ folder: string; messages: MailSummary[] }>