Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 942 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 942 Bytes

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.

Instructions

  1. Copy all EML files to emails/ folder
  2. Run npm start
  3. Sit back and collect those links

How it works

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.