msmtpq: Restore old default connection test

716e47e (New version of msmtpq script, 2013-02-14) added the
connect_test() function. By setting EMAIL_CONN_TEST, the user could
select how connect_test() would check for a working Internet connection.
If the user didn’t specify EMAIL_CONN_TEST, then connect_test() would
use ping by default.

0f794b7 (Update msmtpq scripts., 2015-03-12) added a line that sets
EMAIL_CONN_TEST to “n”. This means two things:

1. The default connection test is no longer the one that uses ping, but
the comments in connect_test() still say that it’s the default.
2. The only way to switch to a different connection test is to edit the
msmtpq script itself.

Considering the number of changes in that commit and its brief commit
message, it seems like that change was unintentional.

This commit makes the connection test that uses ping the default again
and allows users to choose a different test without modifying the msmtpq
script itself.
pull/86/head
Jason Yundt 2 months ago committed by Martin Lambers
parent 97ef25221d
commit f144a9be87
  1. 1
      scripts/msmtpq/msmtpq

@ -108,7 +108,6 @@ LOG=~/log/msmtp.queue.log
##
#EMAIL_CONN_NOTEST=y # deprecated ; use below var
#EMAIL_CONN_TEST={x| |p|P|n|s} # see settings above for EMAIL_CONN_TEST
EMAIL_CONN_TEST=n
#EMAIL_QUEUE_QUIET=t
## ======================================================================================

Loading…
Cancel
Save