{
name => 'whinedays',
- desc => 'The number of days that we\'ll let a bug sit untouched in a NEW ' .
- 'state before our cronjob will whine at the owner.',
+ desc => q{The number of days that we'll let a bug sit untouched in a NEW
+ state before our cronjob will whine at the owner.<br>
+ Set to 0 to disable whining.},
type => 't',
default => 7
},
use Bugzilla::BugMail;
+# Whining is disabled if whinedays is zero
+exit unless Param('whinedays') >= 1;
+
my $dbh = Bugzilla->dbh;
SendSQL("SELECT bug_id, short_desc, login_name " .
"FROM bugs INNER JOIN profiles ON userid = assigned_to " .