Introducing offlinemsmtp
Hello everyone, I wrote a program called offlinemsmtp which wraps msmtp (an SMTP client) so that you can use it offline. (For those who are unfamiliar with msmtp, it is a commonly used program for sending mail in many terminal email clients such as mutt and mu4e.)
You can read my blog post about it here: sumnerevans.com/2019/introducing-offlinemsmtp.html.
The project is on GitLab: gitlab.com/sumner/offlinemsmtp.
Posted Dec 12, 2019, 3:16 AM UTC
So you reimplemented
msmtp-enqueue.sh,msmtp-listqueue.shandmsmtp-runqueue.sh?There are a few differences (you could argue that these are merely quality-of-life improvements, but that's all I need).
offlinemsmtpdaemon runs continually in the background and (at a configurable time interval) attempts to send the mail in the queue directory.offlinemsmtpdaemon will only send an email message if it can connect to the configured SMTP server.offlinemsmtpwill send it immediately.offlinemsmtpintegrates with system notifications so that you are notified when mail is being sent.Highlighting the differences in the README sells the idea better.
A few of these things are fairly simple with a systemd service.