{
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;
+
SendSQL("select bug_id,short_desc,login_name from bugs,profiles where " .
"(bug_status = 'NEW' or bug_status = 'REOPENED') and " .
"to_days(now()) - to_days(delta_ts) > " . Param('whinedays') .