Skip to content

Commit fc92785

Browse files
committed
jobs/publish_notifications: Include unsubscribe instructions in the email
1 parent 1fb1163 commit fc92785

9 files changed

+23
-12
lines changed

src/tests/krate/publish/snapshots/all__krate__publish__basics__new_krate-4.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ A new version of the package foo_new (1.0.0) was published by your account =
1414
(https://crates.io/users/foo) at [0000-00-00T00:00:00Z].
1515

1616
If you have questions or security concerns, you can contact us at help@crat=
17-
es.io.
17+
es.io. If you would like to stop receiving these security notifications, yo=
18+
u can disable them in your account settings.

src/tests/routes/users/update/snapshots/all__routes__users__update__publish_notifications__unsubscribe_and_resubscribe-3.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ A new version of the package foo (1.0.0) was published by your account (htt=
1414
ps://crates.io/users/foo) at [0000-00-00T00:00:00Z].
1515

1616
If you have questions or security concerns, you can contact us at help@crat=
17-
es.io.
17+
es.io. If you would like to stop receiving these security notifications, yo=
18+
u can disable them in your account settings.
1819
----------------------------------------
1920

2021
To: foo@example.com

src/tests/routes/users/update/snapshots/all__routes__users__update__publish_notifications__unsubscribe_and_resubscribe-4.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ A new version of the package foo (1.0.0) was published by your account (htt=
1414
ps://crates.io/users/foo) at [0000-00-00T00:00:00Z].
1515

1616
If you have questions or security concerns, you can contact us at help@crat=
17-
es.io.
17+
es.io. If you would like to stop receiving these security notifications, yo=
18+
u can disable them in your account settings.
1819
----------------------------------------
1920

2021
To: foo@example.com

src/tests/routes/users/update/snapshots/all__routes__users__update__publish_notifications__unsubscribe_and_resubscribe-6.snap

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ A new version of the package foo (1.0.0) was published by your account (htt=
1414
ps://crates.io/users/foo) at [0000-00-00T00:00:00Z].
1515

1616
If you have questions or security concerns, you can contact us at help@crat=
17-
es.io.
17+
es.io. If you would like to stop receiving these security notifications, yo=
18+
u can disable them in your account settings.
1819
----------------------------------------
1920

2021
To: foo@example.com
@@ -43,4 +44,5 @@ A new version of the package foo (1.2.0) was published by your account (htt=
4344
ps://crates.io/users/foo) at [0000-00-00T00:00:00Z].
4445

4546
If you have questions or security concerns, you can contact us at help@crat=
46-
es.io.
47+
es.io. If you would like to stop receiving these security notifications, yo=
48+
u can disable them in your account settings.

src/tests/routes/users/update/snapshots/all__routes__users__update__publish_notifications__unsubscribe_and_resubscribe.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ A new version of the package foo (1.0.0) was published by your account (htt=
1414
ps://crates.io/users/foo) at [0000-00-00T00:00:00Z].
1515

1616
If you have questions or security concerns, you can contact us at help@crat=
17-
es.io.
17+
es.io. If you would like to stop receiving these security notifications, yo=
18+
u can disable them in your account settings.

src/tests/snapshots/all__owners__new_crate_owner-2.snap

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ A new version of the package foo_owner (1.0.0) was published by your accoun=
1414
t (https://crates.io/users/foo) at [0000-00-00T00:00:00Z].
1515

1616
If you have questions or security concerns, you can contact us at help@crat=
17-
es.io.
17+
es.io. If you would like to stop receiving these security notifications, yo=
18+
u can disable them in your account settings.
1819
----------------------------------------
1920

2021
To: Bar@example.com
@@ -43,7 +44,8 @@ A new version of the package foo_owner (2.0.0) was published by Bar (https:=
4344
//crates.io/users/Bar) at [0000-00-00T00:00:00Z].
4445

4546
If you have questions or security concerns, you can contact us at help@crat=
46-
es.io.
47+
es.io. If you would like to stop receiving these security notifications, yo=
48+
u can disable them in your account settings.
4749
----------------------------------------
4850

4951
To: Bar@example.com
@@ -58,4 +60,5 @@ A new version of the package foo_owner (2.0.0) was published by your accoun=
5860
t (https://crates.io/users/Bar) at [0000-00-00T00:00:00Z].
5961

6062
If you have questions or security concerns, you can contact us at help@crat=
61-
es.io.
63+
es.io. If you would like to stop receiving these security notifications, yo=
64+
u can disable them in your account settings.

src/tests/snapshots/all__owners__new_crate_owner.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ A new version of the package foo_owner (1.0.0) was published by your accoun=
1414
t (https://crates.io/users/foo) at [0000-00-00T00:00:00Z].
1515

1616
If you have questions or security concerns, you can contact us at help@crat=
17-
es.io.
17+
es.io. If you would like to stop receiving these security notifications, yo=
18+
u can disable them in your account settings.
1819
----------------------------------------
1920

2021
To: Bar@example.com

src/tests/snapshots/all__team__publish_owned.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ A new version of the package foo_team_owned (2.0.0) was published by user-o=
1414
ne-team (https://crates.io/users/user-one-team) at [0000-00-00T00:00:00Z].
1515

1616
If you have questions or security concerns, you can contact us at help@crat=
17-
es.io.
17+
es.io. If you would like to stop receiving these security notifications, yo=
18+
u can disable them in your account settings.

src/worker/jobs/send_publish_notifications.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ impl Email for PublishNotificationEmail<'_> {
190190
191191
A new version of the package {krate} ({version}) was published{publisher_info} at {publish_time}.
192192
193-
If you have questions or security concerns, you can contact us at [email protected]."
193+
If you have questions or security concerns, you can contact us at [email protected]. If you would like to stop receiving these security notifications, you can disable them in your account settings."
194194
)
195195
}
196196
}

0 commit comments

Comments
 (0)