OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
656 stars 93 forks source link

Wrong item class on signed / encrypted items (Outlook, Windows) #4334

Open manuelsidler opened 3 months ago

manuelsidler commented 3 months ago

Your Environment

Expected behavior

For signed / encrypted items, I'd expect the item class to be "IPM.Note.SMIME.MultipartSigned" on all platforms.

Current behavior

Outlook for Windows returns "IPM.Note" for encrypted / signed mail items. Outlook for Mac and Outlook on the web both return "IPM.Note.SMIME.MultipartSigned".

Steps to reproduce

  1. Clone the example GH repo to reproduce the issue (see link below)
  2. Run the add-in with npm install and npm run dev-server
  3. Side load the add-in on Outlook for Windows
  4. Select a signed and/or encrypted mail
  5. Open the add-in
  6. The item class should be IPM.Note.SMIME.MultipartSigned, but it's IPM.Note

Link to live example(s)

Useful logs

Reproduction video:

https://github.com/OfficeDev/office-js/assets/802015/056e912f-87b4-4b5a-8bf8-cd82d269d059

manuelsidler commented 2 months ago

Added detailed reproduction steps and reproduction video

millerds commented 1 month ago

Thanks for reporting this issue regarding the Office.context.mailbox.item.itemClass api. It has been put on our backlog. We unfortunately have not timelines to share at this point.

Internal tracking id: 8966741