summaryrefslogtreecommitdiff
path: root/sendmail
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-03-27 21:29:41 -0400
committerBen Sima <ben@bensima.com>2025-03-27 21:29:41 -0400
commit7cf00fd9819f663cd411f1079cbbd22127ec7941 (patch)
treebcc04fa2a8c615571e0cdf267f0795f2ce187435 /sendmail
parentf80bbb901d240bca887ec82a96e4ec861c516506 (diff)
fix typo and missing ~/tmp dir
Diffstat (limited to 'sendmail')
-rwxr-xr-xsendmail3
1 files changed, 2 insertions, 1 deletions
diff --git a/sendmail b/sendmail
index 473231c..150cd96 100755
--- a/sendmail
+++ b/sendmail
@@ -2,12 +2,13 @@
# msmtpq has weird exit semantics. if it fails to send, it returns a bunch of
# text which emacs treats as "failure to send" but msmtpq treats as "added to
-# outbot to send later". i guess exit code is not respected by emacs? anyway,
+# outbox to send later". i guess exit code is not respected by emacs? anyway,
# msmtpq does not drop messages, but saves them in a queue, so we can just fire
# and forget. next time we get online, msmtpq will send all the messages in the
# queue.
d=$(date)
+mkdir -p ~/tmp
echo $d >> ~/tmp/msmtp.log
echo $d >> ~/tmp/msmtp.err
msmtpq "$@" >> ~/tmp/msmtp.log 2> ~/tmp/msmtp.err