1 個回答
- 最新
- 最多得票
- 最多評論
1
I figured this out. Turns out every email has a 'Received' element that you can look at. For instance:
In python, I did the following:
mailFor = message.get('Received', [])
Then, the mailfor dict has a number of things related to the message and that includes a single email address indicating who it is for.
I was able to strip out the address from that dict and determine who it was for and then process it without having duplicates.
已回答 4 年前
相關內容
- 已提問 6 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 8 個月前