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
648 stars 92 forks source link

Empty itemId on items of class IPM.Note.SMIME.MultipartSigned (Outlook, Mac) #4330

Open manuelsidler opened 1 month ago

manuelsidler commented 1 month ago

Your Environment

Expected behavior

Office.context.mailbox.item.itemId has a valid value on all platforms and e-mails.

Current behavior

On Outlook for Mac, we get an empty itemId on signed / encrypted e-mails (itemClass IPM.Note.SMIME.MultipartSigned)

image

On Outlook for Windows and Outlook on the web the itemId has a valid value.

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 Mac
  4. Select a signed and/or encrypted mail
  5. Open the add-in
  6. The item class is IPM.Note.SMIME.MultipartSigned, but the ID is empty

Link to live example(s)

Useful logs

Repro video: https://github.com/OfficeDev/office-js/assets/802015/99ca2e21-e5c4-454e-9283-74631d44e16b

rkpathak commented 1 month ago

@manuelsidler Please give detailed steps to reproduce this issue. If possible record video while reproducing and share.

manuelsidler commented 1 month ago

@rkpathak I added a link to a sample repo, as well as detailed reproduction steps and a video recording.

DivyaPatidar commented 3 weeks ago

@manuelsidler Thank you for sharing detailed steps and repro video. The add-in you shared has true . Can you try removing that and then check if itemId is valid for SMIME and other items?

manuelsidler commented 3 weeks ago

@DivyaPatidar what do you mean by "The add-in you shared has true"?

DivyaPatidar commented 3 weeks ago

I mean SupportsMultiSelect is set to true. Github removed SupportsMultiSelect tags :

Screenshot 2024-05-08 at 2 09 35 PM
manuelsidler commented 3 weeks ago

@DivyaPatidar I set SupportsMultiSelect to false. Unfortunately, the itemId is still empty for signed mails:

image
manuelsidler commented 3 weeks ago

@DivyaPatidar you can reproduce the issue with ScriptLab as well:

image image
DivyaPatidar commented 3 weeks ago

@manuelsidler We are unable to reproduce the issue on our side even with the add-ins provide. Could you please gather and send us the diagnostic logs that include the Outlook launch and issue repro? Collecting log files for Outlook Add‐ins issues

manuelsidler commented 2 weeks ago

@DivyaPatidar I tried to follow the instructions for collecting log files. Unfortunately, there is no Help -> Collect Diagnostics menu in Outlook on Mac:

image

I submitted an error via Help -> Feedback -> Report a Problem:

image

After sending the feedback, I didn't not get any incident ID. Did you receive the problem report (manuel@snapdev.onmicrosoft.com)?

mmanjaree-msft commented 2 weeks ago

@manuelsidler Can you please share the log file https://learn.microsoft.com/en-us/outlook/troubleshoot/diagnostic-logging/how-to-enable-logging-in-outlook-for-mac#log-file-locations

manuelsidler commented 1 week ago

@mmanjaree-msft could you provide me an e-mail address to share the log files on a secure way?

rajjha-msft commented 1 week ago

@manuelsidler, please create a private repo and share access with us.

manuelsidler commented 1 week ago

@rajjha-msft I sent you an invitation

anjalitp commented 5 hours ago

@manuelsidler We have reproduced the issue with digitally signed emails that contain inline attachments. Can you confirm whether this issue occurs only with emails that have an inline attachment, or if it affects all IPM.Note.SMIME.MultipartSigned emails in general? Additionally, sharing network logs would be immensely helpful in confirming if the issue we are seeing is the same.