I am trying to use exchangelib
in order to monitor an e-mail address from a dedicated server without requiring an instance of Outlook be installed. We want to move the emails to a processed subfolder once completed. I have been able to connect to the shared mailbox and see the e-mails within the inbox. When I am trying to move the e-mail to the sub folder I am receiving the error. I used exchangelib
to create the subfolder and can see it within outlook and OWA.
What am I doing incorrectly?
Here is the code that I am using:
def _move_to_processed(item):
processed_folder = account.inbox / 'Processed_Test'
item.move(processed_folder)
Error message:
raise ErrorFolderNotFound("No subfolder with name '%s'" % other)
exchangelib.errors.ErrorFolderNotFound: No subfolder with name 'Processed_Test'