Closed imcfarla2003 closed 1 year ago
I have been using your code to reimplement EWS handling in my app. These are the additions that I have made to allow me to recreate the same functionality. The code has been in use daily since October 2022 so it is well tested.
Refactor Message JSON processing into a function so it can be used in multiple places Add getFolderId to get the ID of a folder within a mailbox Add getMessage to allow getting a specific message Add reply to create a reply to a specific message Add updateMessage to allow changing the status of a message Add sendPatchRequest to support updateMessage Add getEvents to allow searching for events Add createEvent, updateEvent and cancelEvent to handle creating, modifying and cancelling events Update getMessages to look in folders, take a filter and optionally get attachments Update deleteMessage to handle messages in folders Update sendMail to optionally delete the message after sending and return true or to return the messageId if successful