Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output raw mail for use with other tools #95

Open
Reisen opened this issue Aug 22, 2024 · 0 comments
Open

Output raw mail for use with other tools #95

Reisen opened this issue Aug 22, 2024 · 0 comments

Comments

@Reisen
Copy link

Reisen commented Aug 22, 2024

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:

  • Opens up use other delivery agents, for example I use msmtp with many accounts so I can more easily manage the various mail servers I have to use (Gmail at work, Personal Gmail from home, Protonmail, etc):
    pop -o - | msmtp -a gmail
  • Pipe the output to mdeliver from the mblaze toolkit for managing file based delivery targets; especially useful if you have an sshfs mounted maildir from another system for example:
    pop -o - | mdeliver /mnt/sshfs/some-host/mail/INBOX
  • Pipe the output through other command line tools to modify mail before sending, I.E sed
    pop -o - | anonymize.sh | tee /tmp/mail.txt | msmtp -a gmail

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant