Move Items to another mailbox #980
-
Hi, I was wondering if it was possible to move emails to another users email box without forwarding. I currently have the item and can move it around its own mail box but i tried moving it to another account and it can't find the folder. FYI i know i can forward the email but I want to move it to preserve the metadata. Any thoughts? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
A quick googling suggests that it is possible to move an item to another mailbox, provided you have permissions to both mailboxes. Something like this: account = Account("some_user@example.com", credentials=...)
message = account.inbox.all()[0]
message.move(to_folder=DistinguishedFolderId(
id=Calendar.DISTINGUISHED_FOLDER_ID,
mailbox=Mailbox(email_address="other_user@example.com")
)) Another possibility is to use the export/upload functionality: https://ecederstrand.github.io/exchangelib/#export-and-upload |
Beta Was this translation helpful? Give feedback.
A quick googling suggests that it is possible to move an item to another mailbox, provided you have permissions to both mailboxes.
Something like this:
Another possibility is to use the export/upload functionality: https://ecederstrand.github.io/exchangelib/#export-and-upload