X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=bin%2FBackupPC_sendEmail;h=bd9a440b5923a5f7052766d97be9903b0cdb90d6;hb=3a173f3feb7dad79150eabf07bc8f304e13cdfe7;hp=cf4f62732578836426487533b7180bb4a58a488d;hpb=2c14784ad71874ec850d189060fe63d6eb9eba95;p=BackupPC.git diff --git a/bin/BackupPC_sendEmail b/bin/BackupPC_sendEmail index cf4f627..bd9a440 100755 --- a/bin/BackupPC_sendEmail +++ b/bin/BackupPC_sendEmail @@ -31,7 +31,7 @@ # #======================================================================== # -# Version 2.1.0_CVS, released 8 Feb 2004. +# Version 2.1.0, released 20 Jun 2004. # # See http://backuppc.sourceforge.net. # @@ -82,7 +82,8 @@ my $mesg = ""; my @badHosts = (); foreach my $host ( sort(keys(%Status)) ) { - next if ( $Status{$host}{reason} ne "backup failed" + next if ( ($Status{$host}{reason} ne "Reason_backup_failed" + && $Status{$host}{reason} ne "Reason_restore_failed") || $Status{$host}{error} =~ /^lost network connection to host/ ); push(@badHosts, "$host ($Status{$host}{error})"); }