Skip to content

Instantly share code, notes, and snippets.

@nbluis
Last active January 28, 2016 11:27
Show Gist options
  • Select an option

  • Save nbluis/234fe1f4d74d917c0e38 to your computer and use it in GitHub Desktop.

Select an option

Save nbluis/234fe1f4d74d917c0e38 to your computer and use it in GitHub Desktop.
Parse AWS bounces e-mails from gmail
(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