Skip to content

Commit 2e6949f

Browse files
authored
Merge pull request #1462 from openjournals/copilot/fix-3a4e0607-40ec-4b1e-b0b5-05935792ffb4
Update author submission email to clarify unmonitored inbox and support channels
2 parents dce0ad2 + e219622 commit 2e6949f

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

app/views/notifications/author_submission_email.html.erb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
Hello there, thanks for your submission to <em><%= Rails.application.settings['abbreviation'] %></em>.
22
<br />
33
Your paper, <em>'<%= @paper.title %>'</em>, is currently awaiting triage by our managing editor. This generally takes up to a week, but during busy times can take a number of weeks. Until then, your paper won't show up in the https://github.com/<%= Rails.application.settings['reviews'] %> repository.
4-
<br />
5-
4+
<br /><br />
5+
<strong>Please do not reply to this email.</strong> This email address ([email protected]) is unmonitored. Once your paper has completed an initial desk check, a GitHub issue will be opened for your submission. All questions and support for your paper should be directed to that GitHub issue.
6+
<br /><br />
67
You can view the latest status of your paper here: <%= @url %>
78
<br />
89
Many thanks<br />

app/views/notifications/author_submission_email.text.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ Hello there, thanks for your submission to <%= Rails.application.settings['abbre
22

33
Your paper, '<%= @paper.title %>', is currently awaiting triage by our managing editor. This generally takes up to a week, but during busy times can take a number of weeks. Until then, your paper won't show up in the https://github.com/<%= Rails.application.settings['reviews'] %> repository.
44

5+
** Please do not reply to this email. ** This email address ([email protected]) is unmonitored. Once your paper has completed an initial desk check, a GitHub issue will be opened for your submission. All questions and support for your paper should be directed to that GitHub issue.
6+
57
You can view the latest status of your paper here: <%= @url %>
68

79
Many thanks

spec/mailers/notifications_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,13 @@
1818

1919
expect(mail.text_part.body).to match /is currently awaiting triage by our managing editor/
2020
end
21+
22+
it "should warn authors not to reply to the email" do
23+
paper = create(:paper, title: "Nice paper!")
24+
mail = Notifications.author_submission_email(paper)
25+
26+
expect(mail.text_part.body).to match /Please do not reply to this email/
27+
expect(mail.text_part.body).to match /admin@theoj\.org.*is unmonitored/
28+
expect(mail.text_part.body).to match /GitHub issue will be opened/
29+
end
2130
end

0 commit comments

Comments
 (0)