Detecting if an email is a “Delivery Status Notification” and extract information - Python

后端 未结 3 1915
不思量自难忘°
不思量自难忘° 2021-02-13 18:35

I\'m using the Python email module to parse emails.

I need to be able to tell if an email is a \"Delivery Status Notification\", find out what the status is

3条回答
  •  囚心锁ツ
    2021-02-13 18:45

    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.

提交回复
热议问题