~schnouki/msmtpq

A message queue for msmtp
fce88bc0 — Thomas Jost 5 months ago
Update host used to check for network connectivity
c4ca8aee — Thomas Jost 4 years ago
Add instructions for installation in $HOME
3442db73 — Thomas Jost 4 years ago
Replace github.com/Mischanix/wait by local code

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~schnouki/msmtpq
read/write
git@git.sr.ht:~schnouki/msmtpq

You can also use your local clone with git send-email.

#msmtpq

This is my take on a message queue for msmtp.

It is made of 3 components:

  • msmtpqd: a daemon that actually runs msmtp to send e-mails
  • mqmtpq: the "replacement" for msmtp, used to send (i.e. enqueue) e-mails
  • msmtp-ctl: a control tool for the daemon: to list unsend e-mails, inspect them, remove them, or force the daemon to try to send e-mails again

The msmtpqd daemon waits for an Internet connection to be available before trying to send e-mails, and notifies the user once the pending e-mails are sent.

All of these components communicate with each other over D-Bus.

This is probably overkill and could be replaced by a much simpler Bash script, but I had fun writing this a few years ago... And it still works really well for me :)

#How to install in $HOME

(i.e. how I use it :))

make BINDIR=$HOME/bin SHAREDIR=$HOME/.local/share SVCDIR=$HOME/.config/systemd/user all install

That's it!