Skip to content

Commit fb72ca9

Browse files
committed
PAUSE::Config: replace UPLOAD with NOREPLY_ADDRESS
1 parent 2ed5455 commit fb72ca9

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

lib/PAUSE.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ $PAUSE::Config ||=
104104
ML_MIN_FILES => 20_000, # must be this many files to run mldistwatch
105105
MOD_DATA_SOURCE_NAME => "dbi:mysql:mod",
106106
NO_SUCCESS_BREAK => 900,
107+
NOREPLY_ADDRESS => '[email protected]',
107108
108109
PID_DIR => "/home/pause/pid/",
109110
PAUSE_LOG => "/home/pause/log/paused.log",
@@ -119,7 +120,6 @@ $PAUSE::Config ||=
119120
TIMEOUT => 60*60,
120121
TRUST_IS_SSL_HEADER => 1,
121122
TMP => '/data/pause/tmp/',
122-
UPLOAD => '[email protected]',
123123
# sign the auto-generated CHECKSUM files with:
124124
CHECKSUMS_SIGNING_PROGRAM => 'gpg',
125125
CHECKSUMS_SIGNING_ARGS => '-q --homedir /home/pause/pause-private/gnupg-pause-batch-signing-home --clearsign --default-key ',

lib/PAUSE/Email.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ sub fromaddr_email_header_object ($class) {
2424
require PAUSE;
2525

2626
return $class->email_header_object_for_addresses(
27-
Email::Address::XS->new("Perl Authors Upload Server", $PAUSE::Config->{UPLOAD})
27+
Email::Address::XS->new("Perl Authors Upload Server", $PAUSE::Config->{NOREPLY_ADDRESS})
2828
);
2929
}
3030

lib/pause_1999/config.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ share_perms
394394

395395
}
396396

397-
$self->{OurEmailFrom} = "\"Perl Authors Upload Server\" <$PAUSE::Config->{UPLOAD}>";
397+
$self->{OurEmailFrom} = "\"Perl Authors Upload Server\" <$PAUSE::Config->{NOREPLY_ADDRESS}>";
398398
# warn "Debug: OurEmailFrom=UPLOAD[$self->{OurEmailFrom}]";
399399
my(@time) = gmtime; # sec,min,hour,day,month,year
400400
my $quartal = int($time[4]/3) + 1; # 1..4

lib/pause_1999/edit.pm

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,7 +1654,7 @@ filename[%s]. </p>
16541654

16551655
# via FTP GET
16561656

1657-
warn "DEBUG: UPLOAD[$PAUSE::Config->{UPLOAD}]";
1657+
warn "DEBUG: UPLOAD[$PAUSE::Config->{NOREPLY_ADDRESS}]";
16581658
push @m, qq{<tr><td bgcolor="#ffe0ff">If you want me <b>to fetch a
16591659
file</b> from an URL, enter the full URL here.<br />};
16601660

@@ -2457,12 +2457,12 @@ The PAUSE Team
24572457

24582458
# both users and mailing lists run this code
24592459

2460-
warn "DEBUG: UPLOAD[$PAUSE::Config->{UPLOAD}]";
2460+
warn "DEBUG: UPLOAD[$PAUSE::Config->{NOREPLY_ADDRESS}]";
24612461
my(@to) = $PAUSE::Config->{CONTACT_ADDRESS};
24622462
push @m, qq{ Sending separate mails to:
24632463
}, join(" AND ", @to, $email), qq{
24642464
<pre>
2465-
From: $PAUSE::Config->{UPLOAD}
2465+
From: $PAUSE::Config->{NOREPLY_ADDRESS}
24662466
Subject: $subject\n};
24672467

24682468
my($blurb) = join "", @blurb;
@@ -3065,7 +3065,7 @@ MAIL
30653065
}{<a href=\"$1\">$1</a>}xg;
30663066
$blurbcopy =~ s|(>http.*?)U|$1\n U|gs; # break the long URL
30673067
push @m, qq{<pre>
3068-
From: $PAUSE::Config->{UPLOAD}
3068+
From: $PAUSE::Config->{NOREPLY_ADDRESS}
30693069
Subject: $subject
30703070
30713071
$blurbcopy
@@ -4394,9 +4394,9 @@ The PAUSE Team
43944394
my($blurb) = join "", @blurb;
43954395
require HTML::Entities;
43964396
my($blurbcopy) = HTML::Entities::encode($blurb,"<>&");
4397-
warn "DEBUG: UPLOAD[$PAUSE::Config->{UPLOAD}]";
4397+
warn "DEBUG: UPLOAD[$PAUSE::Config->{NOREPLY_ADDRESS}]";
43984398
push @m, qq{<pre>
4399-
From: $PAUSE::Config->{UPLOAD}
4399+
From: $PAUSE::Config->{NOREPLY_ADDRESS}
44004400
Subject: $subject
44014401
44024402
$blurbcopy
@@ -4967,9 +4967,9 @@ Peek at the current permissions:
49674967
my($blurbcopy) = HTML::Entities::encode($blurb,"<>&");
49684968
$blurbcopy =~ s|(https?://[^\s\"]+)|<a href="$1">$1</a>|g;
49694969
$blurbcopy =~ s|(>http.*?)U|$1\n U|gs; # break the long URL
4970-
# warn "DEBUG: UPLOAD[$PAUSE::Config->{UPLOAD}]";
4970+
# warn "DEBUG: UPLOAD[$PAUSE::Config->{NOREPLY_ADDRESS}]";
49714971
push @m, qq{<pre>
4972-
From: $PAUSE::Config->{UPLOAD}
4972+
From: $PAUSE::Config->{NOREPLY_ADDRESS}
49734973
Subject: $subject
49744974
49754975
$blurbcopy
@@ -5951,7 +5951,7 @@ decision.</li>
59515951
again. As it is done by a cron job, it may take up to an hour
59525952
until the indexer actually executes the command. If this doesn't
59535953
repair the index, please <a
5954-
href="mailto:$PAUSE::Config->{UPLOAD}">email me</a>. };
5954+
href="mailto:$PAUSE::Config->{NOREPLY_ADDRESS}">email me</a>. };
59555955

59565956
require Cwd;
59575957
my $cwd = Cwd::cwd();

lib/pause_2017/PAUSE/Web/Controller/User/Uri.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ sub add {
136136

137137
# via FTP GET
138138

139-
warn "DEBUG: UPLOAD[$PAUSE::Config->{UPLOAD}]";
139+
warn "DEBUG: UPLOAD[$PAUSE::Config->{NOREPLY_ADDRESS}]";
140140

141141
# END OF UPLOAD OPTIONS
142142
}

lib/pause_2017/templates/admin/user/add.html.ep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ changed&#160;by&#160;<%= $row->{changedby} %><br>
8787

8888
Sending separate mails to: <%= $pause->{send_to} %>
8989
<pre>
90-
From: <%= $PAUSE::Config->{UPLOAD} %>
90+
From: <%= $PAUSE::Config->{NOREPLY_ADDRESS} %>
9191
Subject: <%= $pause->{subject} %>
9292

9393
<%= $pause->{blurb} %>

lib/pause_2017/templates/public/request_id/request.html.ep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<p>You'll also receive a welcome email like the one below.</p>
2525

2626
<pre class="email_sent">
27-
From: <%= $PAUSE::Config->{UPLOAD} %>
27+
From: <%= $PAUSE::Config->{NOREPLY_ADDRESS} %>
2828
Subject: <%= $pause->{subject_for_user_addition} %>
2929

3030
<%== $pause->{blurb_for_user_addition} %>
@@ -37,7 +37,7 @@ Subject: <%= $pause->{subject_for_user_addition} %>
3737
% elsif ($pause->{blurbcopy}) {
3838
Sending mail to: <%= $pause->{send_to} %>
3939
<pre class="email_sent">
40-
From: <%= $PAUSE::Config->{UPLOAD} %>
40+
From: <%= $PAUSE::Config->{NOREPLY_ADDRESS} %>
4141
Subject: <%= $pause->{subject} %>
4242

4343
<%== $pause->{blurbcopy} %>

lib/pause_2017/templates/user/reindex.html.ep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
</ul>
1616

17-
<p>With this form you can tell the indexer to index selected files again. As it is done by a cron job, it may take up to an hour until the indexer actually executes the command. If this doesn't repair the index, please <a href="mailto:<%= $PAUSE::Config->{UPLOAD} %>">email me</a>.</p>
17+
<p>With this form you can tell the indexer to index selected files again. As it is done by a cron job, it may take up to an hour until the indexer actually executes the command. If this doesn't repair the index, please <a href="mailto:<%= $PAUSE::Config->{NOREPLY_ADDRESS} %>">email me</a>.</p>
1818

1919
% if (%$files) {
2020
% if ($pause->{mailbody}) {

t/pause_2017/lib/Test/PAUSE/Web.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ $PAUSE::Config->{ML_CHOWN_USER} = 'ishigaki';
5151
$PAUSE::Config->{ML_CHOWN_GROUP} = 'ishigaki';
5252
$PAUSE::Config->{ML_MIN_INDEX_LINES} = 0;
5353
$PAUSE::Config->{ML_MIN_FILES} = 0;
54+
$PAUSE::Config->{NOREPLY_ADDRESS} = $TestEmail;
5455
$PAUSE::Config->{RUNDATA} = "$TestRoot/rundata";
55-
$PAUSE::Config->{UPLOAD} = $TestEmail;
5656
$PAUSE::Config->{HAVE_PERLBAL} = 0;
5757
$PAUSE::Config->{SLEEP} = 1;
5858
$PAUSE::Config->{INCOMING} = "file://$TestRoot/incoming/";

0 commit comments

Comments
 (0)