π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[server] Update copy
Neeraj Guptaf4aa0985fda2
diff --git a/server/mail-templates/inactive-user-deletion/confirm_13m.html b/server/mail-templates/inactive-user-deletion/confirm_13m.htmlindex 309021e343..b49fb89373 100644--- a/server/mail-templates/inactive-user-deletion/confirm_13m.html+++ b/server/mail-templates/inactive-user-deletion/confirm_13m.html@@ -3,6 +3,6 @@{{define "content"}}<p>Hi,</p>-<p>Your Ente account and associated data was deleted on {{.DeletionDate}} because there was no activity across our apps for more than 13 months.</p>+<p>Your Ente account associated with <strong>{{.Email}}</strong> and associated data was deleted on {{.DeletionDate}} because there was no activity across our apps for more than 13 months.</p><p>If you believe this was a mistake, you can reply to this email or send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>{{end}}diff --git a/server/mail-templates/inactive-user-deletion/warn_1d.html b/server/mail-templates/inactive-user-deletion/warn_1d.htmlindex 289e5c9553..d167442ce9 100644--- a/server/mail-templates/inactive-user-deletion/warn_1d.html+++ b/server/mail-templates/inactive-user-deletion/warn_1d.html@@ -3,7 +3,7 @@{{define "content"}}<p>Hi,</p>-<p>We're reaching out because your Ente account hasn't been used across any of our apps for more than 12 months.</p>+<p>We're reaching out because your Ente account associated with <strong>{{.Email}}</strong> hasn't been used across any of our apps for more than 12 months.</p><p>If there's no activity before {{.DeletionDate}} (tomorrow), we'll delete your account and associated data as part of our inactive-account policy.</p><p>To keep your account, simply <a href="https://web.ente.io">sign in</a> or use any Ente app before {{.DeletionDate}}.</p><p>If you think this is a mistake or you need help accessing your account, you can reply to this email or send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>diff --git a/server/mail-templates/inactive-user-deletion/warn_1m.html b/server/mail-templates/inactive-user-deletion/warn_1m.htmlindex d64df45689..616b5a541f 100644--- a/server/mail-templates/inactive-user-deletion/warn_1m.html+++ b/server/mail-templates/inactive-user-deletion/warn_1m.html@@ -3,7 +3,7 @@{{define "content"}}<p>Hi,</p>-<p>We're reaching out because your Ente account hasn't been used across any of our apps for more than 12 months.</p>+<p>We're reaching out because your Ente account associated with <strong>{{.Email}}</strong> hasn't been used across any of our apps for more than 12 months.</p><p>If there's no activity before {{.DeletionDate}} (in 30 days), we'll delete your account and associated data as part of our inactive-account policy.</p><p>To keep your account, simply <a href="https://web.ente.io">sign in</a> or use any Ente app before {{.DeletionDate}}.</p><p>If you think this is a mistake or you need help accessing your account, reply to this email or send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>diff --git a/server/mail-templates/inactive-user-deletion/warn_2m.html b/server/mail-templates/inactive-user-deletion/warn_2m.htmlindex 0a23671dfb..19e9a75f50 100644--- a/server/mail-templates/inactive-user-deletion/warn_2m.html+++ b/server/mail-templates/inactive-user-deletion/warn_2m.html@@ -3,7 +3,7 @@{{define "content"}}<p>Hi,</p>-<p>We're reaching out because your Ente account hasn't been used across any of our apps for more than 11 months.</p>+<p>We're reaching out because your Ente account associated with <strong>{{.Email}}</strong> hasn't been used across any of our apps for more than 11 months.</p><p>If there's no activity before {{.DeletionDate}}, we'll delete your account and associated data as part of our inactive-account policy.</p><p>To keep your account, simply <a href="https://web.ente.io">sign in</a> or use any Ente app before {{.DeletionDate}}.</p><p>If you think this is a mistake or you need help accessing your account, reply to this email or send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>diff --git a/server/mail-templates/inactive-user-deletion/warn_7d.html b/server/mail-templates/inactive-user-deletion/warn_7d.htmlindex 0d8e4e473e..49be4bb175 100644--- a/server/mail-templates/inactive-user-deletion/warn_7d.html+++ b/server/mail-templates/inactive-user-deletion/warn_7d.html@@ -3,7 +3,7 @@{{define "content"}}<p>Hi,</p>-<p>We're reaching out because your Ente account hasn't been used across any of our apps for more than 12 months.</p>+<p>We're reaching out because your Ente account associated with <strong>{{.Email}}</strong> hasn't been used across any of our apps for more than 12 months.</p><p>If there's no activity before {{.DeletionDate}} (in 7 days), we'll delete your account and associated data as part of our inactive-account policy.</p><p>To keep your account, simply <a href="https://web.ente.io">sign in</a> or use any Ente app before {{.DeletionDate}}.</p><p>If you think this is a mistake or you need help accessing your account, you can reply to this email or send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>diff --git a/server/pkg/utils/email/email_test.go b/server/pkg/utils/email/email_test.goindex bdcf3b3df9..ed35ed6305 100644--- a/server/pkg/utils/email/email_test.go+++ b/server/pkg/utils/email/email_test.go@@ -1,6 +1,7 @@package emailimport (+ "os""testing""github.com/stretchr/testify/assert"@@ -96,3 +97,32 @@ func TestGetMaskedEmailForPublic(t *testing.T) {})}}++func TestInactiveUserDeletionTemplatesIncludeAccountEmail(t *testing.T) {+ originalWD, err := os.Getwd()+ assert.NoError(t, err)+ assert.NoError(t, os.Chdir("../../.."))+ defer func() {+ assert.NoError(t, os.Chdir(originalWD))+ }()++ templateData := map[string]interface{}{+ "Email": "[email protected]",+ "DeletionDate": "April 1, 2026",+ }+ templateNames := []string{+ "inactive-user-deletion/warn_2m.html",+ "inactive-user-deletion/warn_1m.html",+ "inactive-user-deletion/warn_7d.html",+ "inactive-user-deletion/warn_1d.html",+ "inactive-user-deletion/confirm_13m.html",+ }++ for _, templateName := range templateNames {+ t.Run(templateName, func(t *testing.T) {+ body, err := getMailBodyWithBase("ente_base.html", templateName, templateData)+ assert.NoError(t, err)+ assert.Contains(t, body, "[email protected]")+ })+ }+}