citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit e0bda8c55cd56d9626aee626cfa651a1a7ffb68f
parent 3093439be7b516bf4cbd00fe5ad8a645636e2437
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 15 Dec 2021 17:02:20 -0800

sendmail: pretend to be sendmail even more

Diffstat:
Mbin/sendmail | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/bin/sendmail b/bin/sendmail @@ -7,6 +7,11 @@ export EMAIL_CONN_TEST=c #cat > "$file" #sendmail-bg "$file" -t --read-envelope-from "$@" & disown +if [ "$1" = "--help" ]; then + /run/current-system/sw/bin/sendmail "$@" + exit 1 +fi + output=$(msmtpq "$@" 2> /tmp/msmtp.err) echo "$output" >> /tmp/msmtp.log