Skip to content

Introduce extra options for outlook message list #5872

@milanholemans

Description

@milanholemans

Idea

While reviewing #5784, I noticed that the command outlook message list is not that user-friendly.
The mailbox on my test account has increased quite a bit in the years. Currently, with this command, you can only retrieve all messages, and this takes quite a while on my account.

Therefore, I suggest we introduce 2 new options.

Option Description
--startTime [startTime] Time indicating the inclusive start of a time range when the message was received. This should be defined as a valid ISO 8601 string (2021-12-16T18:28:48.6964197Z).
--endTime [endTime] Time indicating the exclusive end of a time range when the message was received. This should be defined as a valid ISO 8601 string (2021-12-16T18:28:48.6964197Z).

Remarks

An Outlook message object has 4 dates: createdDateTime, lastModifiedDateTime, receivedDateTime, and sentDateTime. I think we should filter on receivedDateTime because I assume this is also the date displayed in your Outlook client. Agree?

Extra

Noticed something in the code that we should fix as well, I think the autocomplete should be removed for this option:

{
option: '--folderId [folderId]',
autocomplete: Outlook.wellKnownFolderNames
}

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions