[Question] Office 365 download attachments from shared mailbox and mark message as read. Need a smarter person than I.

I am trying to create a script that will reach out and grab all attachments from unread mail in a shared mailbox. I have something half working at this point and have a hit a wall. It goes to the api and will download attachments on any unread messages but I can’t figure out how to mark them as read. Additionally I can’t figure out the move to folder part at the end :/

Any help at all would make me a very happy sys admin.

https://pastebin.com/XW33Vc8Z

submitted by /u/imVERYhighrightnow
[link] [comments]

Leave a Reply