Menu

Turn Newsletter Replies Into a Feedback Log With 40 Lines of Python
📰

Turn Newsletter Replies Into a Feedback Log With 40 Lines of Python

DEV Community: productivity·AI Automation Enterenpeur·13 days ago
#QVGdVRqH
#devtoproductivity#devto#dev#subject#body
Long article (672 words) — no AI summary yet.
Reading 0:00
15s threshold

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 .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.