diff options
Diffstat (limited to 'ulri')
-rwxr-xr-x | ulri | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -122,11 +122,6 @@ my %config_usage = ( }, }, }, - # this is weird to me, guessing email addresses? -spuk - default_mail_domain => { - desc => "Default mail domain to append", - default => 'mandriva.org' - }, faildelay => { desc => "Time after which the rebuild is considered as a failure", default => 36000 @@ -488,13 +483,14 @@ foreach my $prefix (keys %pkg_tree) { $text .= "- $srpm\n"; } - my $to = get_author_email($user) || "$user\@$config->{default_mail_domain}"; + my $to = get_author_email($user) || "Unknown <$config->{admin}>"; + my $cc = undef; my $fpath = "$config->{http_queue}/failure/$path/$prefix"; $fpath =~ tr!/!!s; # Squash double slashes ... $fpath =~ s!/!//!; # ... except for http:// $text .= "\nFailure details available in $fpath\n"; - sendmail($to, $config->{admin}, + sendmail($to, $cc, "Rebuild failed on $arch for $srpms", $text, "Ulri the scheduler bot <$config->{admin}>", 0); } |