diff options
-rwxr-xr-x | contrib/fetchsetup | 4 | ||||
-rw-r--r-- | contrib/runfetchmail | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/contrib/fetchsetup b/contrib/fetchsetup index 83223a11..b2cd8dbd 100755 --- a/contrib/fetchsetup +++ b/contrib/fetchsetup @@ -64,8 +64,8 @@ echo "protocol $PROTO" >> $HOME/.fetchmailrc echo 'username "'$USR'"' >> $HOME/.fetchmailrc echo 'password "'$PASS'"' >> $HOME/.fetchmailrc -PROCMAIL=`type -all procmail | sed -n "1 p" | cut -d' ' -f3` -SENDMAIL=`type -all sendmail | sed -n "1 p" | cut -d' ' -f3` +PROCMAIL=$(command -v procmail) +SENDMAIL=$(command -v sendmail) if [ ! "$PROCMAIL" = "" ]; then echo 'mda "'$PROCMAIL -d %s'"' >> $HOME/.fetchmailrc diff --git a/contrib/runfetchmail b/contrib/runfetchmail index c72917a2..799f671a 100644 --- a/contrib/runfetchmail +++ b/contrib/runfetchmail @@ -126,11 +126,11 @@ stats() # Ensure we have a log file test ! -e $LOG && touch $LOG -echo -e "\n\t\t\t $VERSION Statistics" +printf "\n\t\t\t $VERSION Statistics" test $MAILSTAT -eq 1 && mailstat -k <$LOG echo "" num_mail $FOLDERS -test $TIMER -eq 1 && echo -e "\n`timer -stop -id $$ -quiet` have elapsed." +test $TIMER -eq 1 && printf "\n`timer -stop -id $$ -quiet` have elapsed." } prepmail() |