Skip to main content

Each email in an Exchange folder

Yield each email matching the Find emails filters as a dictionary: id, from, subject, received, unread, has_attachments.

Loop type in the Exchange (EWS) toolkit · id ooa.exchange/emails · 13 inputs, no 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 resultsNumberNo100Stop after this many emails.
SessionStringNoexchangeSession name of the open Exchange mailbox.
BeforeDateTimeNoReceived before this time (UTC).
Read onlyBooleanNofalseOnly emails already read.
Has attachments onlyBooleanNofalseOnly emails that have attachments.
Oldest firstBooleanNofalseThe oldest emails first instead of the newest.
Body containsStringNoBody contains this text (searched by the server); separate several with ; to match any of them.
With bodyBooleanNofalseGive each email whole: text, HTML, recipients and attachment names (one more request per email); the email stays unread. Without it each email has id, from, subject, received, unread and has_attachments.