1 Answer
- Newest
- Most votes
- Most comments
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.
answered 4 years ago
Relevant content
- Accepted Answerasked 10 months ago
- asked 4 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago