maton outlook message list

maton outlook message list [flags]

List messages from your mailbox or a specific mail folder. Without –folder all messages are returned; with –folder (name or ID, e.g. Inbox, Drafts, SentItems) only the messages in that folder are returned.

Options

--connection <string>
Connection ID to route through (Maton-Connection header)
--dry-run
Print the request that would be sent without executing it
--filter <string>
OData $filter expression (e.g. "isRead eq false")
--folder <string>
Folder name or ID (e.g. Inbox, Drafts, SentItems)
--format <string>
Output format: 'json' (default) or 'text' on supported commands
-q, --jq <expression>
Filter JSON output using a jq expression
--orderby <string>
OData $orderby (e.g. receivedDateTime desc)
--paginate
Follow next_cursor and concatenate all pages (list commands only)
--select <string>
Comma-separated fields (e.g. subject,from,receivedDateTime)
--skip <string>
Number of results to skip (pagination)
--template <string>
Format JSON output using a Go template; see "maton help formatting"
--top <string> (default "10")
OData $top — max results per page

Options inherited from parent commands

-p, --profile <string>
Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)

Examples

$ maton outlook message list
$ maton outlook message list --folder Inbox --top 25
$ maton outlook message list --filter "isRead eq false" --orderby "receivedDateTime desc"
$ maton outlook message list --paginate

See also