I have been looking for a way to delete emails from exchange.
Use Case:
ProofPoint TAP emails come in stating that it delivered a "bad" email. We need to delete said email using the sender, recipient, subject, timeframe, and/or messageid.
Results:
Connect to the Exchange/O365 instance and search the entire environment for the email in the recipients mailbox and delete the message to protect the organization/user.
I have been looking into the fn_exchange integration and was trying to figure out if that was what this tool was meant for or if this was only pulling messages from 1 mailbox per the settings of the user. I can do this with powershell scripts, but have yet to find a way to do it in Python (or at least I am not Googling right...) and was hoping that this answered my problems.
Thanks for the help in advance!
------------------------------
Nick Mumaw
------------------------------