Skip to content

Move Items to another mailbox #980

Answered by ecederstrand
gismcieri asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gismcieri
Comment options

@gismcieri
Comment options

Answer selected by gismcieri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants