Last active
January 28, 2016 11:27
-
-
Save nbluis/234fe1f4d74d917c0e38 to your computer and use it in GitHub Desktop.
Parse AWS bounces e-mails from gmail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| var messages = Array.prototype.slice.call(document.getElementsByClassName('adO')); | |
| var emails = messages.map(function(m) { | |
| return m.childNodes[0].getElementsByTagName('a')[1].getAttribute('href').replace('mailto:', ''); | |
| }); | |
| var hist = {}; | |
| emails.map( function (a) { if (a in hist) hist[a] ++; else hist[a] = 1; } ); | |
| console.log(hist); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment