Don't send any mail when in not running daemon mode (patch submitted by Daniel Thaler)

git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@30 3873ddee-7413-0410-b6c4-c2c57c1ab35a
This commit is contained in:
wimpunk 2006-11-27 07:47:33 +00:00
parent 2740a57766
commit af4b8d2df8
2 changed files with 3 additions and 1 deletions

View file

@ -5,6 +5,8 @@ Changelog
- Added initscript for Ubuntu (posted by Paolo Martinelli)
- Added patch "Patch: Treat --daemon values as intervals"
(submitted by James deBoer)
- Don't send any mail when in not running daemon mode (patch submitted by
Daniel Thaler)
3.7.0

View file

@ -1353,7 +1353,7 @@ sub logger {
sub sendmail {
my $recipients = opt('mail');
if (opt('mail-failure') && ($result ne 'OK')) {
if (opt('mail-failure') && ($result ne 'OK' && $result != 0)) {
$recipients = opt('mail-failure');
}
if ($msgs && $recipients && $msgs ne $last_msgs) {