diff options
-rwxr-xr-x | .local/bin/smail | 3 |
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 |