diff --git a/lib/PAUSE.pm b/lib/PAUSE.pm index b05e76a77..17574a341 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) { 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 d1dad4034..8b6abc842 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 4819eeb01..21ae0dc58 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 6d020e443..9d3bb0031 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