Description
I have developed an add-in for Outlook that is triggered whenever the user clicks the "Send" button. Upon activation, the add-in opens a dialog box that allows the user to interact and input information. The primary function of the add-in is to automatically append a header and footer to the body of the email before it is sent.
However, I’ve encountered an issue where the add-in is sometimes invoked multiple times in quick succession, causing the header and footer to be added repeatedly to the email body. This results in the email body becoming cluttered with redundant content.
For context, I am using Outlook 16.94 with the legacy UI on a Mac system.
I’ve come across a similar issue reported on GitHub (#1367), which appears to be related, though the problem is not entirely consistent. The issue seems to occur more frequently under certain conditions, particularly when multiple applications are running simultaneously. A noteworthy observation is that when the user is sharing their entire screen via Microsoft Teams, this issue becomes almost persistent.