+2007-12-02 Andrew Ruthven
+ Allow sending emails only if there is low disk space or recording
+ conflicts.
+
2007-11-28 Andrew Ruthven
Be more wary about processing what the backend has sent us.
This includes cleaning up some invalid UTF-8 characters.
my $colour = undef;
my %display;
my @email;
-my $email_only_on_conflict = 0;
+my $email_only_on_alert = 0;
my $help = undef;
my $xml_file = undef;
my $verbose = 0;
'p|port=i' => \$port,
'v|version' => \&print_version,
'email=s@' => \@email,
- 'email-only-on-conflict' => \$email_only_on_conflict,
+ 'email-only-on-conflict|email-only-on-alert' => \$email_only_on_alert,
'disk-space-warn=i' => \$disk_space_warn,
'status!' => \$display{'Status'},
if (scalar(@email) == 0) {
print "\n$output";
} else {
- if (! ($email_only_on_conflict && scalar(@alerts) > 0)) {
+ if ((! $email_only_on_alert) ||
+ ($email_only_on_alert && scalar(@alerts) > 0)) {
my $suffix = undef;
if (@alerts == 1) {
$suffix = $alerts[0];
To turn the additional blocks on you can use B<--encoders>, B<--recording-now>
and/or B<--next-recording>.
-=item B<--email-only-on-conflict>
+=item B<--email-only-on-alert>
-Only send an email out (if --email is present) if there is a schedule conflict.
+Only send an email out (if --email is present) if there is an alert
+(i.e., schedule conflict or low disk space).
=item B<-?, --help>