diff options
author | karl.kornel%mindspeed.com <> | 2006-07-30 10:50:24 +0000 |
---|---|---|
committer | karl.kornel%mindspeed.com <> | 2006-07-30 10:50:24 +0000 |
commit | ddddaf2b67207056ebb407ea68f9e0e6a697a37e (patch) | |
tree | 3c6f037aed9ba5afb9e7459c8d11a59fd6b07928 /whine.pl | |
parent | Bug 346414: Move the creation/maintenance of the data/ directory out of check... (diff) | |
download | bugzilla-ddddaf2b67207056ebb407ea68f9e0e6a697a37e.tar.gz bugzilla-ddddaf2b67207056ebb407ea68f9e0e6a697a37e.tar.bz2 bugzilla-ddddaf2b67207056ebb407ea68f9e0e6a697a37e.zip |
Bug 100953: Move data/nomail into the DB and implement a UI to edit it
Patch by A. Karl Kornel <karl@kornel.name> r=wurblzap a=justdave
Diffstat (limited to 'whine.pl')
-rwxr-xr-x | whine.pl | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -102,14 +102,6 @@ if ($fromaddress !~ Bugzilla->params->{'emailregexp'}) { "The maintainer email address has not been properly set!\n"; } -# Check the nomail file for users who should not receive mail -my %nomail; -if (open(NOMAIL, '<', bz_locations()->{'datadir'} . "/nomail")) { - while (<NOMAIL>) { - $nomail{trim($_)} = 1; - } -} - # get the current date and time my ($now_sec, $now_minute, $now_hour, $now_day, $now_month, $now_year, $now_weekday) = localtime; @@ -373,7 +365,7 @@ sub mail { my $args = shift; # Don't send mail to someone on the nomail list. - return if $nomail{$args->{'recipient'}->{'login'}}; + return if $args->{recipient}->email_disabled; my $msg = ''; # it's a temporary variable to hold the template output $args->{'alternatives'} ||= []; |