Ever tried find that one link someone emailed you a long time ago in Outlook for Mac?
Well now you can export all your EML files (select all your emails and just drag them to the desktop), copy them to this emails/ folder, and spit out every link contained in all the emails.
Once you have this list, you can sort / unique it, and see if you can find the link you were looking for.
- Copy all EML files to emails/ folder
- Run
npm start
- Sit back and collect those links
We glob through our EML files, read them,
and parse its contents using mailparser
to extract the HTML body from the actual email. Then we pass that HTML into
JSDOM so we can easily querySelectorAll
to get all <a>
tags. Then, we simply write all of the href's of those links
out to a file.