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 |
|
} |
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.
--startTime [startTime]--endTime [endTime]Remarks
An Outlook message object has 4 dates:
createdDateTime,lastModifiedDateTime,receivedDateTime, andsentDateTime. I think we should filter onreceivedDateTimebecause 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:
cli-microsoft365/src/m365/outlook/commands/message/message-list.ts
Lines 53 to 56 in 4f8e5bf