summaryrefslogtreecommitdiff
path: root/.local/bin/smail
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-26 13:48:42 +0300
committerThomas Voss <mail@thomasvoss.com> 2023-08-26 13:48:42 +0300
commit631f0cf7c0ea4bd50a37c9c36da33b1eade9246b (patch)
tree0993d1623180ab9d6a8043373125d312cbaf4fcb /.local/bin/smail
parent57e6f0ae0e12b916b7dd6ae5287289afbe45dcaf (diff)
smail: Fix broken shit
Diffstat (limited to '.local/bin/smail')
-rwxr-xr-x.local/bin/smail3
1 files changed, 2 insertions, 1 deletions
diff --git a/.local/bin/smail b/.local/bin/smail
index 869beb8..fa1c887 100755
--- a/.local/bin/smail
+++ b/.local/bin/smail
@@ -5,7 +5,8 @@ set -e
tmp=`mktemp`
trap "rm -f $tmp" EXIT
-addr="`tee $tmp | mhdr -h from - | sed -E '/.*<.*>$/s/.*<(.*)>$/\1/'`"
+cat >$tmp
+addr="`mhdr -h from $tmp | sed -E '/.*<.*>$/s/.*<(.*)>$/\1/'`"
mbox="$MAILDIR/$addr/Sent"
if msmtp -t --read-envelope-from <$tmp