New command: m365 outlook message get
See original GitHub issueUsage
m365 outlook message get [options]
Description
Retrieves specified message
Options
Option | Description |
---|---|
-i, --id <id> |
The Id of the message |
--userId [userId] |
The id of the userfrom which to get the message |
--userPrincipalName [userPrincipalName] |
The UPN of the user rom which to get the message |
Additional Info
If there are other scenarios that require app-only permissions, we can definitely include them in the CLI, but they can only be used with a custom AAD app. We should clarify that in the command’s docs.
I think it would be a good idea to add a remark against the option description that passing the user ID or UPN of a shared mailbox user would be accepted.
Above to be added to the docs.
Open points:
Discussed
- As we’re using delegated permissions, does it make sense to add
--userId
parameter? If so, it’d require proper design as it’d potentially be used for different commands. However, it’d require app permissions. - ADDED I just realized that
userId
might still be useful when we pull data from shared mailbox. I’ll add to the spec later - DROPPED (reference) - I’m not sure what’s the use case for
/me/mailFolders/messages
endpoint, but I proposed it here anyway to be in line with the endpoint mechanisms. Is it for cases where two emails with the same id are in different folders? - CHANGED (source) Should we use
userId
ormailboxId
? Effectively, we not always provide a user. It’s either a user mailbox or shared mailbox or group mailbox. Seems likemailboxId
would be more natural.
Issue Analytics
- State:
- Created 2 years ago
- Comments:18 (18 by maintainers)
Top Results From Across the Web
Immediately send messages and check for new mail
Keyboard shortcut To send and receive messages for all accounts, press F9. To send all messages in the Outbox, but skip checking for...
Read more >Command line switches for Outlook 365, 2021, 2019, 2016 ...
Switch Description Works in
/cleanclientrules Starts Outlook and deletes client‑based rules. 2003, 2007, 2010, 2013...
/cleanmailtipcache Removes all MailTips from the cache. 2010, 2013, 2016,...
Read more >Office 365: Adding Favorite Commands to Outlook ToolBar
You can add commands you use the most (ie: print, bcc) to the appropriate Quick Access Toolbar in Outlook.
Read more >Send Email From or on Behalf of an Office 365 Group or User
Open Outlook on the web. To create a new message, click new . Select the More Actions menu > Show From. Show From...
Read more >Adding commands to the Home or Message tab of the Ribbon
Create a new email. · Choose: File-> Options-> Customize Ribbon · In the list on the right, verify that “New Mail Message” is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, Milan and Waldek. I’m happy for someone else to take over. I updated the spec with the current discussion
@waldekmastykarz yes, I do. I’ll do the checking and reply to you later.