Steps:
- First you need to download mails using
offlineimap
with python2 interpreter.
../offlineimap/bin/offlineimap -f "Sent Items"
- Then run
python3 manipulate.py
to generate readable mails in file systems. Themanipulate.py
only extracts plain text mail content fromINBOX
.
For specific directory, use
python3 manipulate.py --maildir_name Sent
- Uploading to your private file storage server, for example oss:
ossutil64 cp -rf read oss://undergraduate/maildir/
Uploading to Baidu NetDisk is also a good choice.
# compress first
tar -czvf read.tar.gz read/
You can also use mutt
console client program to
read the archived mail. That is mail -f /home/feng/imap-maildir/INBOX/