# but associated e-mail addresses are not. Ward, 2011-02-08.
my $email_blacklist = "/home/gatekpr/etc/email_blacklist";
+# List of all package maintainers
+my $maintainers_bypkg = "/home/gatekpr/etc/maintainers.bypkg";
+
my $log_style = 'GNU';
$log_style = 'Alpha' if ($style eq 'alpha');
$log_style = 'Distros' if ($style eq 'distros');
# absolute, since lsof outputs absolute names.
#
- my @lsof_args = ("/home/gatekpr/bin/lsof", "-Fn",
+ my @lsof_args = ("/usr/bin/lsof", "-Fn",
map { "$incoming_dir/$_" } keys %possible);
my $pid = open (LSOF, "-|");
}
close (EMAIL_FILE) || ftp_warn("close($package_config_base/$package_name/email) failed: $!");
+
+ # Now also look for all maintainer addresses in the maintainers.bypkg file
+ open (EMAIL_FILE, "<", "$maintainers_bypkg");
+ while (<EMAIL_FILE>) {
+ chomp;
+ my @tmp = split(/ - /,$_,2);
+ next unless ($tmp[0] eq $package_name);
+ # The while loop below needs a proper scalar to work.
+ my $e = $tmp[1];
+ while ($e =~ /([[:graph:]]+@[[:graph:]]+)/g) {
+ my $f = $1;
+ $f =~ s/[<>,]//g;
+ push (@ret, $f) unless exists {map { $_ => 1 } @ret}->{$f};
+ }
+ }
+ close (EMAIL_FILE);
+
return @ret;
}