Usage Tips:
- Click on a keyword to enable inline editing.
- Click inside a code block to copy (excludes comments).
- Use the button to view examples.
- Click outside to collapse all examples.
Open email file
Tools
sudo apt install readpst
Sample Output:
TO-DO
Basic
# Convert to mbox format
readpst '<PST_FILE>'
Sample Output:
$ readpst 'Access Control.pst'
Opening PST file and indexes...
Processing Folder "Deleted Items"
"Access Control" - 2 items done, 0 items skipped.
# Open .mbox (plaintext)
cat '<MBOX_FILE>'
Sample Output:
$ cat 'Access Control.mbox'
From "john@megacorp.com" Fri Aug 24 07:44:07 2018
Status: RO
From: john@megacorp.com <john@megacorp.com>
Subject: MegaCorp Access Control System "security" account
To: 'security@accesscontrolsystems.com'
Date: Thu, 23 Aug 2018 23:44:07 +0000
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="--boundary-LibPST-iamunique-41717394_-_-"
----boundary-LibPST-iamunique-41717394_-_-
Content-Type: multipart/alternative;
boundary="alt---boundary-LibPST-iamunique-41717394_-_-"
--alt---boundary-LibPST-iamunique-41717394_-_-
Content-Type: text/plain; charset="utf-8"
Hi there,
The password for the “security” account has been changed to 4Cc3ssC0ntr0ller. Please ensure this is passed on to your engineers.
Regards,
John
--alt---boundary-LibPST-iamunique-41717394_-_-
...[SNIP]...
Read many emails
# Install mutt
sudo apt install mutt
Sample Output:
TO-DO
# Open in mutt terminal
mutt -Rf '<MBOX_FILE>'
Sample Output:
$ mutt -Rf 'Access Control.mbox'
q:Quit d:Del u:Undel s:Save m:Mail r:Reply g:Group ?:Help
1 Aug 23 john@megacorp.c ( 76) MegaCorp Access Control System "security" account
+--------------------------------------+
| Note: Answer No to create /root/Mail |
| |
| Arrow : Move to the email |
| Enter : View email |
| q : back |
| q again : quit |
+--------------------------------------+
Sample Output:
TO-DO
Tools
# Install msgconvert
sudo apt install libemail-outlook-message-perl
Sample Output:
TO-DO
# Install formail
sudo apt install procmail
Sample Output:
TO-DO
Basic
# Convert to .eml format
msgconvert *.msg
Sample Output:
$ msgconvert *.msg
# Convert to .mbox format
cat <EML_FILE> | formail -b > emails.mbox
Sample Output:
$ cat emails.eml | formail -b > emails.mbox