summarylogtreecommitdiffstats
path: root/msmtpq-systemd
diff options
context:
space:
mode:
authorMax Gautier2022-06-28 15:15:33 +0200
committerMax Gautier2022-06-28 15:15:33 +0200
commita877d2c6ab14b332dd23df424cbc8776a09f1cfa (patch)
tree9605cbb4fb4a875758710d477036670906af1a3e /msmtpq-systemd
downloadaur-msmtpq-systemd.tar.gz
First commit
Diffstat (limited to 'msmtpq-systemd')
-rwxr-xr-xmsmtpq-systemd7
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)