aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlackDex <[email protected]>2020-11-18 12:04:16 +0100
committerBlackDex <[email protected]>2020-11-18 12:04:16 +0100
commit3fed323385356c429e4e40030bd316047d27f5a1 (patch)
treec2db01a2d51772c74ba6cb49495045ba516c3247
parent58a928547d2f9ef99817f475da5cf65e461d98ea (diff)
downloadvaultwarden-3fed323385356c429e4e40030bd316047d27f5a1.tar.gz
vaultwarden-3fed323385356c429e4e40030bd316047d27f5a1.zip
Fixed plain/text email format
plain/text emails should not contain html elements like <p> <a> etc.. This triggers some spamfilters and increases the spam score. Also added the github link into the text only emails since this also triggers spamfilters to increase the score since the url/link count is different between the multipart messages.
-rw-r--r--src/static/templates/email/change_email.hbs10
-rw-r--r--src/static/templates/email/delete_account.hbs18
-rw-r--r--src/static/templates/email/invite_accepted.hbs11
-rw-r--r--src/static/templates/email/invite_confirmed.hbs11
-rw-r--r--src/static/templates/email/new_device_logged_in.hbs18
-rw-r--r--src/static/templates/email/pw_hint_none.hbs5
-rw-r--r--src/static/templates/email/pw_hint_some.hbs9
-rw-r--r--src/static/templates/email/send_org_invite.hbs20
-rw-r--r--src/static/templates/email/smtp_test.hbs12
-rw-r--r--src/static/templates/email/twofactor_email.hbs11
-rw-r--r--src/static/templates/email/verify_email.hbs16
-rw-r--r--src/static/templates/email/welcome.hbs12
-rw-r--r--src/static/templates/email/welcome_must_verify.hbs18
13 files changed, 84 insertions, 87 deletions
diff --git a/src/static/templates/email/change_email.hbs b/src/static/templates/email/change_email.hbs
index 30008822..d2ed2d8f 100644
--- a/src/static/templates/email/change_email.hbs
+++ b/src/static/templates/email/change_email.hbs
@@ -1,6 +1,8 @@
Your Email Change
<!---------------->
-<html>
-<p>To finalize changing your email address enter the following code in web vault: <b>{{token}}</b></p>
-<p>If you did not try to change an email address, you can safely ignore this email.</p>
-</html>
+To finalize changing your email address enter the following code in web vault: {{token}}
+
+If you did not try to change an email address, you can safely ignore this email.
+
+===
+Github: https://github.com/dani-garcia/bitwarden_rs
diff --git a/src/static/templates/email/delete_account.hbs b/src/static/templates/email/delete_account.hbs
index 22425343..b8b6c8c2 100644
--- a/src/static/templates/email/delete_account.hbs
+++ b/src/static/templates/email/delete_account.hbs
@@ -1,12 +1,10 @@
Delete Your Account
<!---------------->
-<html>
-<p>
-click the link below to delete your account.
-<br>
-<br>
-<a href="{{url}}/#/verify-recover-delete?userId={{user_id}}&token={{token}}&email={{email}}">
-Delete Your Account</a>
-</p>
-<p>If you did not request this email to delete your account, you can safely ignore this email.</p>
-</html>
+Click the link below to delete your account.
+
+Delete Your Account: {{url}}/#/verify-recover-delete?userId={{user_id}}&token={{token}}&email={{email}}
+
+If you did not request this email to delete your account, you can safely ignore this email.
+
+===
+Github: https://github.com/dani-garcia/bitwarden_rs
diff --git a/src/static/templates/email/invite_accepted.hbs b/src/static/templates/email/invite_accepted.hbs
index bdb7afcb..641ce7f4 100644
--- a/src/static/templates/email/invite_accepted.hbs
+++ b/src/static/templates/email/invite_accepted.hbs
@@ -1,8 +1,7 @@
Invitation to {{{org_name}}} accepted
<!---------------->
-<html>
-<p>
- Your invitation for <b>{{email}}</b> to join <b>{{org_name}}</b> was accepted.
- Please <a href="{{url}}/">log in</a> to the bitwarden_rs server and confirm them from the organization management page.
-</p>
-</html>
+Your invitation for *{{email}}* to join *{{org_name}}* was accepted.
+Please log in via {{url}} to the bitwarden_rs server and confirm them from the organization management page.
+
+===
+Github: https://github.com/dani-garcia/bitwarden_rs
diff --git a/src/static/templates/email/invite_confirmed.hbs b/src/static/templates/email/invite_confirmed.hbs
index acfbf972..f4fa2a9b 100644
--- a/src/static/templates/email/invite_confirmed.hbs
+++ b/src/static/templates/email/invite_confirmed.hbs
@@ -1,8 +1,7 @@
Invitation to {{{org_name}}} confirmed
<!---------------->
-<html>
-<p>
- Your invitation to join <b>{{org_name}}</b> was confirmed.
- It will now appear under the Organizations the next time you <a href="{{url}}/">log in</a> to the web vault.
-</p>
-</html>
+Your invitation to join *{{org_name}}* was confirmed.
+It will now appear under the Organizations the next time you log in to the web vault at {{url}}.
+
+===
+Github: https://github.com/dani-garcia/bitwarden_rs
diff --git a/src/static/templates/email/new_device_logged_in.hbs b/src/static/templates/email/new_device_logged_in.hbs
index c3c6bf90..1c14fde1 100644
--- a/src/static/templates/email/new_device_logged_in.hbs
+++ b/src/static/templates/email/new_device_logged_in.hbs
@@ -1,14 +1,12 @@
New Device Logged In From {{{device}}}
<!---------------->
-<html>
-<p>
- Your account was just logged into from a new device.
+Your account was just logged into from a new device.
- Date: {{datetime}}
- IP Address: {{ip}}
- Device Type: {{device}}
+* Date: {{datetime}}
+* IP Address: {{ip}}
+* Device Type: {{device}}
- You can deauthorize all devices that have access to your account from the
- <a href="{{url}}/">web vault</a> under Settings > My Account > Deauthorize Sessions.
-</p>
-</html>
+You can deauthorize all devices that have access to your account from the web vault ( {{url}} ) under Settings > My Account > Deauthorize Sessions.
+
+===
+Github: https://github.com/dani-garcia/bitwarden_rs
diff --git a/src/static/templates/email/pw_hint_none.hbs b/src/static/templates/email/pw_hint_none.hbs
index 67a7a093..b62a65bf 100644
--- a/src/static/templates/email/pw_hint_none.hbs
+++ b/src/static/templates/email/pw_hint_none.hbs
@@ -2,6 +2,9 @@ Your master password hint
<!---------------->
You (or someone) recently requested your master password hint. Unfortunately, your account does not have a master password hint.
-If you cannot remember your master password, there is no way to recover your data. The only option to gain access to your account again is to <a href="{{url}}/#/recover-delete">delete the account</a> so that you can register again and start over. All data associated with your account will be deleted.
+If you cannot remember your master password, there is no way to recover your data. The only option to gain access to your account again is to delete the account ( {{url}}/#/recover-delete ) so that you can register again and start over. All data associated with your account will be deleted.
If you did not request your master password hint you can safely ignore this email.
+
+===
+Github: https://github.com/dani-garcia/bitwarden_rs
diff --git a/src/static/templates/email/pw_hint_some.hbs b/src/static/templates/email/pw_hint_some.hbs
index f40d43e8..ba783ab1 100644
--- a/src/static/templates/email/pw_hint_some.hbs
+++ b/src/static/templates/email/pw_hint_some.hbs
@@ -2,9 +2,12 @@ Your master password hint
<!---------------->
You (or someone) recently requested your master password hint.
-Your hint is: "{{hint}}"
-Log in: <a href="{{url}}/">Web Vault</a>
+Your hint is: *{{hint}}*
+Log in to the web vault: {{url}}
-If you cannot remember your master password, there is no way to recover your data. The only option to gain access to your account again is to <a href="{{url}}/#/recover-delete">delete the account</a> so that you can register again and start over. All data associated with your account will be deleted.
+If you cannot remember your master password, there is no way to recover your data. The only option to gain access to your account again is to delete the account ( {{url}}/#/recover-delete ) so that you can register again and start over. All data associated with your account will be deleted.
If you did not request your master password hint you can safely ignore this email.
+
+===
+Github: https://github.com/dani-garcia/bitwarden_rs
diff --git a/src/static/templates/email/send_org_invite.hbs b/src/static/templates/email/send_org_invite.hbs
index 340820b9..efe1d287 100644
--- a/src/static/templates/email/send_org_invite.hbs
+++ b/src/static/templates/email/send_org_invite.hbs
@@ -1,12 +1,12 @@
Join {{{org_name}}}
<!---------------->
-<html>
-<p>
-You have been invited to join the <b>{{org_name}}</b> organization.
-<br>
-<br>
-<a href="{{url}}/#/accept-organization/?organizationId={{org_id}}&organizationUserId={{org_user_id}}&email={{email}}&organizationName={{org_name}}&token={{token}}">
-Click here to join</a>
-</p>
-<p>If you do not wish to join this organization, you can safely ignore this email.</p>
-</html>
+You have been invited to join the *{{org_name}}* organization.
+
+
+Click here to join: {{url}}/#/accept-organization/?organizationId={{org_id}}&organizationUserId={{org_user_id}}&email={{email}}&organizationName={{org_name}}&token={{token}}
+
+
+If you do not wish to join this organization, you can safely ignore this email.
+
+===
+Github: https://github.com/dani-garcia/bitwarden_rs
diff --git a/src/static/templates/email/smtp_test.hbs b/src/static/templates/email/smtp_test.hbs
index 9d16d223..cc37993d 100644
--- a/src/static/templates/email/smtp_test.hbs
+++ b/src/static/templates/email/smtp_test.hbs
@@ -1,8 +1,8 @@
Bitwarden_rs SMTP Test
<!---------------->
-<html>
-<p>
-This is a test email to verify the SMTP configuration for <a href="{{url}}">{{url}}</a>.
-</p>
-<p>When you can read this email it is probably configured correctly.</p>
-</html>
+This is a test email to verify the SMTP configuration for {{url}}.
+
+When you can read this email it is probably configured correctly.
+
+===
+Github: https://github.com/dani-garcia/bitwarden_rs
diff --git a/src/static/templates/email/twofactor_email.hbs b/src/static/templates/email/twofactor_email.hbs
index b2cb1611..ca2745f6 100644
--- a/src/static/templates/email/twofactor_email.hbs
+++ b/src/static/templates/email/twofactor_email.hbs
@@ -1,9 +1,8 @@
Your Two-step Login Verification Code
<!---------------->
-<html>
-<p>
- Your two-step verification code is: <b>{{token}}</b>
+Your two-step verification code is: {{token}}
- Use this code to complete logging in with Bitwarden.
-</p>
-</html>
+Use this code to complete logging in with Bitwarden.
+
+===
+Github: https://github.com/dani-garcia/bitwarden_rs
diff --git a/src/static/templates/email/verify_email.hbs b/src/static/templates/email/verify_email.hbs
index 06cf2c8d..7dabc80e 100644
--- a/src/static/templates/email/verify_email.hbs
+++ b/src/static/templates/email/verify_email.hbs
@@ -1,12 +1,10 @@
Verify Your Email
<!---------------->
-<html>
-<p>
Verify this email address for your account by clicking the link below.
-<br>
-<br>
-<a href="{{url}}/#/verify-email/?userId={{user_id}}&token={{token}}">
-Verify Email Address Now</a>
-</p>
-<p>If you did not request to verify your account, you can safely ignore this email.</p>
-</html>
+
+Verify Email Address Now: {{url}}/#/verify-email/?userId={{user_id}}&token={{token}}
+
+If you did not request to verify your account, you can safely ignore this email.
+
+===
+Github: https://github.com/dani-garcia/bitwarden_rs
diff --git a/src/static/templates/email/welcome.hbs b/src/static/templates/email/welcome.hbs
index 2717aa44..30bf6d6c 100644
--- a/src/static/templates/email/welcome.hbs
+++ b/src/static/templates/email/welcome.hbs
@@ -1,8 +1,8 @@
Welcome
<!---------------->
-<html>
-<p>
-Thank you for creating an account at <a href="{{url}}/">{{url}}</a>. You may now log in with your new account.
-</p>
-<p>If you did not request to create an account, you can safely ignore this email.</p>
-</html>
+Thank you for creating an account at {{url}}. You may now log in with your new account.
+
+If you did not request to create an account, you can safely ignore this email.
+
+===
+Github: https://github.com/dani-garcia/bitwarden_rs
diff --git a/src/static/templates/email/welcome_must_verify.hbs b/src/static/templates/email/welcome_must_verify.hbs
index 53cecfca..a21666e6 100644
--- a/src/static/templates/email/welcome_must_verify.hbs
+++ b/src/static/templates/email/welcome_must_verify.hbs
@@ -1,12 +1,10 @@
Welcome
<!---------------->
-<html>
-<p>
-Thank you for creating an account at <a href="{{url}}/">{{url}}</a>. Before you can login with your new account, you must verify this email address by clicking the link below.
-<br>
-<br>
-<a href="{{url}}/#/verify-email/?userId={{user_id}}&token={{token}}">
-Verify Email Address Now</a>
-</p>
-<p>If you did not request to create an account, you can safely ignore this email.</p>
-</html>
+Thank you for creating an account at {{url}}. Before you can login with your new account, you must verify this email address by clicking the link below.
+
+Verify Email Address Now: {{url}}/#/verify-email/?userId={{user_id}}&token={{token}}
+
+If you did not request to create an account, you can safely ignore this email.
+
+===
+Github: https://github.com/dani-garcia/bitwarden_rs