Skip to main content

Save all attachments

Save the attachments of every email of a folder that the filters find (G5).

Command in the Exchange (EWS) toolkit · id ooa.exchange/save_all_attachments · 11 inputs (1 required), 1 output

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.
StatusStringNoanyWhich emails: any, only unread or only read.
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).
BeforeDateTimeNoReceived before this time (UTC).
Maximum resultsNumberNo500At most this many emails.
SessionStringNoexchangeSession name of the open Exchange mailbox.
Target folderFileYesFolder to save into.
Name patternStringNo*Only names matching this pattern, e.g. *.pdf.
OverwriteBooleanNofalseReplace files of the same name instead of adding a number.

Outputs​

OutputTypeWhat it is
filesListSaved file paths.