Skip to content

romellem/get-all-links-in-eml-emails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Extract HREF's from EML email files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published