I\'m using the Python email module to parse emails.
email
I need to be able to tell if an email is a \"Delivery Status Notification\", find out what the status is
The X-Failed-Recipients header seems to be the quickest way to identify gmail DSN. After that, it seems you must parse the text/plain content.
X-Failed-Recipients