I'm experimenting with the exchangelib. What I'm trying to do is, sync the mails from the inbox folder, between to mailboxes. I'm not sure if my way is the right one, but my idea is to use sync_items() on the source account and then safe it to the target.
source_items = source_account.inbox.sync_items()
for change_type, item in source_items:
print(change_type, item)
I can get all the mails I want with the code above. But I can't figure out, how to safe them to the target account. send_and_save() seems to send the mail again. I also tried export and upload, without success.
Is it even possible to do this? Any hints would be helpful.