Skip to content

Instantly share code, notes, and snippets.

@maroonmed
maroonmed / maildump365.py
Last active November 25, 2018 23:09
Download all emails from Exchange/Office365 to an mbox file
#!/usr/bin/env python3
import mailbox
import os
import sys
import traceback
from exchangelib import Account, Configuration, Credentials, DELEGATE