Skip to content

Instantly share code, notes, and snippets.

@Nav-Appaiya
Created October 29, 2020 13:58
Show Gist options
  • Select an option

  • Save Nav-Appaiya/285f2d95277cdea013488afcf534505f to your computer and use it in GitHub Desktop.

Select an option

Save Nav-Appaiya/285f2d95277cdea013488afcf534505f to your computer and use it in GitHub Desktop.
# from: https://www.basvanbeek.nl/linux/migrate-mail-from-outlook-pst-file-to-remote-imap-server/
sudo yum install libpst
wget "https://raw.githubusercontent.com/rgladwell/imap-upload/master/imap_upload.py"
mkdir mailbox
readpst -o mailbox -r yourLocalFile.pst
# Upload Inbox
python imap_upload.py --host mail.domain.com --port 993 --ssl --user='[email protected]' --password='YourPassword!' \
-r 'mailbox/[email protected]/Postvak IN';
# Upload Sent items
python imap_upload.py --host mail.domain.com --port 993 --ssl --user='[email protected]' --password='YourPassword!' \
-r 'mailbox/[email protected]/Verzonden items';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment