Anybody have a template I could reference?
Gmail, outlook, what’s the email service?
I’d assume Gmail will be near impossible, you’ll need to write to a csv file I bet as well.
I just had to do this yesterday to extract urls.
Connect the account to Outlook, and then use the export feature to dump those messages to a CSV file. To me, this wasn’t quite useful yet, so I brought that CSV file into a regular text editor (VS Code) and used regular expressions to strip away unwanted data.