Ending a newsletter with one question ("What should we build next?") is one of the cheapest ways to get customer feedback. The hard part isn't getting replies. It's not losing them.
Here's a small Python script that checks an inbox for new replies to your newsletter, tags each one by keyword, and appends it to a CSV you can open in any spreadsheet.
What it does
Connects to your inbox over IMAP.
Finds unread messages whose subject matches your newsletter's reply subject.
Pulls the plain-text body.
Tags it as pricing, bug, feature_request, praise or other.
Appends date, sender, tag and the first line to newsletter_replies.csv.
No third-party packages. Just the standard library.
The code
import csv import email import imaplib import os from email .…