msmtp: we always provide a path to msmtp

+12 -2
+12 -2
pkgs/applications/networking/msmtp/paths.patch
··· 1 - 35cab741af069571cf4c55e0ce1ae96617d5778c nixify 2 1 diff --git a/scripts/msmtpq/msmtpq b/scripts/msmtpq/msmtpq 3 - index d8b4039..1ab89f8 100755 2 + index d8b4039..1f2a7b5 100755 4 3 --- a/scripts/msmtpq/msmtpq 5 4 +++ b/scripts/msmtpq/msmtpq 5 + @@ -60,8 +60,8 @@ err() { dsp '' "$@" '' ; exit 1 ; } 6 + ## e.g. ( export MSMTP=/path/to/msmtp ) 7 + if [ "$MSMTP" = "" ] ; then # If MSMTP is unset or empty... 8 + MSMTP=msmtp 9 + -elif [ ! -x "$MSMTP" ] ; then 10 + - log -e 1 "msmtpq : can't find the msmtp executable [ $MSMTP ]" # if not found - complain ; quit 11 + +# elif [ ! -x "$MSMTP" ] ; then 12 + +# log -e 1 "msmtpq : can't find the msmtp executable [ $MSMTP ]" # if not found - complain ; quit 13 + fi 14 + ## 15 + ## set the queue var to the location of the msmtp queue directory 6 16 @@ -71,7 +71,7 @@ fi 7 17 ## ( chmod 0700 msmtp.queue ) 8 18 ##