summarylogtreecommitdiffstats
path: root/msmtpq-systemd
blob: 6244469ad5b8eb220e5567a82d93e5192fa1747e (plain)
1
2
3
4
5
6
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)