This is a fork of
Node Bounce Snoop
Based on
This should help (email is messy) to detect if an email message is a bounce message
Usage
check if an email is a bounce
const EmailSnoop = ; let message = "<email as text with all header and parts>"; //using Promise EmailSnoop; //using callback EmailSnoop; //The message could be set with EmailSnoop.init(message), otherwise the snoop remembers the last used email
get bounce detail
const EmailSnoop = ; //using Promise EmailSnoop; //using callback EmailSnoop;
Example combination
const EmailSnoop = ; EmailSnoop; //using the email set via init EmailSnoop;