diff options
author | Max Gautier | 2022-06-28 15:15:33 +0200 |
---|---|---|
committer | Max Gautier | 2022-06-28 15:15:33 +0200 |
commit | a877d2c6ab14b332dd23df424cbc8776a09f1cfa (patch) | |
tree | 9605cbb4fb4a875758710d477036670906af1a3e /msmtpq-systemd | |
download | aur-msmtpq-systemd.tar.gz |
First commit
Diffstat (limited to 'msmtpq-systemd')
-rwxr-xr-x | msmtpq-systemd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/msmtpq-systemd b/msmtpq-systemd new file mode 100755 index 000000000000..6244469ad5b8 --- /dev/null +++ b/msmtpq-systemd @@ -0,0 +1,7 @@ +#!/bin/bash -e + +tmp_dir=`mktemp -d` +echo "$@" > $tmp_dir/opt & +cp /dev/stdin $tmp_dir/mail +wait -f +mv $tmp_dir ${MAIL_QUEUE:-$HOME/.local/share/msmtp-queue}/$(uuidgen) |