From 631f0cf7c0ea4bd50a37c9c36da33b1eade9246b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 26 Aug 2023 13:48:42 +0300 Subject: smail: Fix broken shit --- .local/bin/smail | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.local/bin') 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 -- cgit v1.2.3