Mohammad Faateh
Mohammad Faateh

Reputation: 145

IMAP configs for Outlook using Mail-listener

I would like to know if there are any other options in mailbox other than INBOX for example SPAM or Junk Emails for Microsoft Outlook? Currently I am using Mail-listener for IMAP connection and here is the following code

configs = {
      host: "outlook.office365.com",
      username: "",
      password: "",
      port: 993,
      tls: true,
      mailbox: "INBOX",
      searchFilter: ["NEW"],
      markSeen: false,
      fetchUnreadOnStart: true,
      attachments: false,
      xoauth2,
      tlsOptions: {
        rejectUnauthorized: false
      }
    }

I would also like to know search filters for outlook. Thank you in advance.

Upvotes: 0

Views: 97

Answers (0)

Related Questions