Skip to content

outlook message list

Gets all mail messages from the specified folder

Usage

m365 outlook message list [options]

Options

--folderName [folderName]
Name of the folder from which to list messages
--folderId [folderId]
ID of the folder from which to list messages
-h, --help
output usage information
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text. Default text
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

List all messages in the folder with the specified name

m365 outlook message list --folderName Archive

List all messages in the folder with the specified ID

m365 outlook message list --folderId AAMkAGVmMDEzMTM4LTZmYWUtNDdkNC1hMDZiLTU1OGY5OTZhYmY4OAAuAAAAAAAiQ8W967B7TKBjgx9rVEURAQAiIsqMbYjsT5e-T7KzowPTAAAAAAFNAAA=

List all messages in the folder with the specified well-known name

m365 outlook message list --folderName inbox

More information