# List of all package maintainers
my $maintainers_bypkg = "/home/gatekpr/etc/maintainers.bypkg";
-# maintainer e-mail address
-my $maintainer_email = "ftp-upload-report\@gnu.org";
+# E-mail addresses
+{
+ # - public archive of successful upload reports and some errors
+ our $Public_Upload_Archive_Inbox = "ftp-upload-report\@gnu.org";
+ # - unmoderated collector of other errors and copies of some reports
+ our $Internal_Report_Inbox = 'ftp-upload-script@gnu.org';
+}
my $serials_path = "/home/gatekpr/etc/upload-ftp-serials.txt";
-my $email_always = 'ftp-upload-script@gnu.org'; # e.g., ftp-upload@gnu.org
# syslog destination
use constant SYSLOG_APP_IDENT => 'gatekeeper';
my $subject = shift;
$subject ||= '';
- my @email_list = ($email_always);
+ our $Internal_Report_Inbox;
+
+ my @email_list = ($Internal_Report_Inbox);
# Some messages should be sent to the user, some should not
push (@email_list, @{$info{email}})
if (defined $info{email} && $send_to_user);
# the script maintainer anyway.
ftp_syslog('info',
"No uploader e-mail address(es) to report this error to!");
- @email_list = ($email_always);
+ @email_list = ($Internal_Report_Inbox);
}
my $sender = 'ftp-upload-script@gnu.org';
local $Text::Wrap::columns = 78;
sendmail($sender,
- [$email_always, @email_list],
+ [$Internal_Report_Inbox, @email_list],
[[To => join ', ', @email_list],
[From => $sender],
[Date => strftime("%a, %e %b %Y %H:%M:%S %z", localtime)],
my $msg = shift;
my $package_name = shift;
+ our $Public_Upload_Archive_Inbox;
+
sendmail('ftp-upload-script@gnu.org',
- [$maintainer_email],
- [[To => $maintainer_email],
+ [$Public_Upload_Archive_Inbox],
+ [[To => $Public_Upload_Archive_Inbox],
[From => 'ftp-upload-script@gnu.org'],
[Date => strftime("%a, %e %b %Y %H:%M:%S %z", localtime)],
[Subject => ("[$zone_tag gnu-ftp-debug] "