From 42ddf75cb80a2471d9bf20d5f07455737d716d0d Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Sun, 26 Apr 2026 22:04:43 +0900 Subject: [PATCH 1/2] Add a temporaty global variable --- lib/PAUSE.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/PAUSE.pm b/lib/PAUSE.pm index b05e76a7..17574a34 100644 --- a/lib/PAUSE.pm +++ b/lib/PAUSE.pm @@ -27,6 +27,9 @@ use Sys::Hostname (); use Time::Piece; use YAML::Syck; +# cf. https://github.com/andk/pause/issues/584 +our $cpan_dot_org_mail_forwarding_ok = 0; + our $USE_RECENTFILE_HOOKS = Sys::Hostname::hostname =~ /pause/; if ($USE_RECENTFILE_HOOKS) { unless ($HAVE_RECENTFILE) { From eb592d39b0e3f2b28ac81091e005522aaafcf238 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Sun, 26 Apr 2026 22:05:15 +0900 Subject: [PATCH 2/2] Apply changes requested in #584 --- lib/pause_2017/templates/admin/email_for_admin.html.ep | 2 +- lib/pause_2017/templates/public/request_id/_form.html.ep | 1 + lib/pause_2017/templates/user/cred/edit.html.ep | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/pause_2017/templates/admin/email_for_admin.html.ep b/lib/pause_2017/templates/admin/email_for_admin.html.ep index d1dad403..8b6abc84 100644 --- a/lib/pause_2017/templates/admin/email_for_admin.html.ep +++ b/lib/pause_2017/templates/admin/email_for_admin.html.ep @@ -9,7 +9,7 @@ id - id@cpan.org gets forwarded to + Contact Email diff --git a/lib/pause_2017/templates/public/request_id/_form.html.ep b/lib/pause_2017/templates/public/request_id/_form.html.ep index 4819eeb0..21ae0dc5 100644 --- a/lib/pause_2017/templates/public/request_id/_form.html.ep +++ b/lib/pause_2017/templates/public/request_id/_form.html.ep @@ -23,6 +23,7 @@ Note: You can enter fairly free-form text here but it must consist of at least t

<%= text_field "pause99_request_id_email", size => 32 %>

+

Note that contact information will be shared with the CPAN security team (security.cpan.org)<% if (!$PAUSE::cpan_dot_org_mail_forwarding_ok) {%> and the E-Mail forwarding service<% } %>.

diff --git a/lib/pause_2017/templates/user/cred/edit.html.ep b/lib/pause_2017/templates/user/cred/edit.html.ep index 6d020e44..9d3bb003 100644 --- a/lib/pause_2017/templates/user/cred/edit.html.ep +++ b/lib/pause_2017/templates/user/cred/edit.html.ep @@ -109,6 +109,12 @@ for communicating with you.

The email address <%= $cpan_alias %> should be configured to forward mail to ...

+% if (!$PAUSE::cpan_dot_org_mail_forwarding_ok) { +

+🚧 The mail forwarding service is currently not +available. Changes here will only take effect when the service can +be started up again. --

+% }

cpan.org has a mail address for you and it's your choice if you want it to point to your