question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New command: m365 outlook message get

See original GitHub issue

Usage

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 or mailboxId? Effectively, we not always provide a user. It’s either a user mailbox or shared mailbox or group mailbox. Seems like mailboxId would be more natural.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

3reactions
robdycommented, Sep 20, 2022

Thanks, Milan and Waldek. I’m happy for someone else to take over. I updated the spec with the current discussion

2reactions
robdycommented, Jun 23, 2022

@waldekmastykarz yes, I do. I’ll do the checking and reply to you later.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found