charmbracelet / pop

Send emails from your terminal 📬
MIT License
2.41k stars 51 forks source link

Output raw mail for use with other tools #95

Open Reisen opened 3 months ago

Reisen commented 3 months ago

Is your feature request related to a problem? Please describe. Pop seems to be limited at the moment to sending mail via SMTP or Resend, but access to the raw mail body would make this tool much more useful for working with other tools. For example:

Basically right now pop is a beautiful UI for creating mail, but does not fit well into the command-line philosophy of being a combine-able tool with the rest of the mail ecosystem.

Describe the solution you'd like A flag for simply outputting the raw resulting mail body/headers without processing. I.E: pop -o -

Describe alternatives you've considered Setting up a local MTA that can be targeted by SMTP and scripting that would work but it is a lot of overhead.