Skip to main content

Find emails

List emails in an Exchange folder, newest first, filtered by unread, sender, subject and date; loop over the table to process them.

Command in the Exchange (EWS) toolkit · id ooa.exchange/list · 12 inputs, 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
FolderStringNoinboxFolder: a well-known name (inbox, sentitems, deleteditems, drafts, junkemail, archive), a path such as Inbox/Invoices, or a folder id.
Unread onlyBooleanNofalseOnly unread emails.
From containsStringNoSender contains this text; separate several with ; to match any of them.
Subject containsStringNoSubject contains this text; separate several with ; to match any of them.
SinceDateTimeNoReceived on or after this time (UTC).
Maximum resultsNumberNo100Maximum emails returned.
BeforeDateTimeNoReceived before this time (UTC).
Read onlyBooleanNofalseOnly emails already read.
Has attachments onlyBooleanNofalseOnly emails that have attachments.
Oldest firstBooleanNofalseReturn the oldest emails first instead of the newest.
SessionStringNoexchangeSession name of the open Exchange mailbox.
Body containsStringNoBody contains this text (searched by the server); separate several with ; to match any of them.

Outputs​

OutputTypeWhat it is
tableTableColumns: id, from, subject, received, unread, has_attachments.
countNumberNumber of emails.