π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Update copies
Neeraj Gupta2b72eda35b38
diff --git a/server/mail-templates/inactive-user-deletion/confirm_12m.html b/server/mail-templates/inactive-user-deletion/confirm_12m.htmlindex 51e5c6797a..4d44f5b8ee 100644--- a/server/mail-templates/inactive-user-deletion/confirm_12m.html+++ b/server/mail-templates/inactive-user-deletion/confirm_12m.html@@ -1,11 +1,8 @@{{template "ente_base" .}}{{define "content"}}-<p>Hello,</p>+<p>Hi,</p>-<p>Your Ente account has reached 12 months of inactivity.</p>-<p>This account has been marked for manual deletion review.</p>-<p>If you sign in again, the inactivity counter will reset.</p>--<p>Regards,<br/>Team Ente</p>+<p>Your Ente account and associated data was deleted on {{.DeletionDate}} because there was no activity across our apps for more than 12 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_11m.html b/server/mail-templates/inactive-user-deletion/warn_11m.htmlindex 12ddbac3f5..0a23671dfb 100644--- a/server/mail-templates/inactive-user-deletion/warn_11m.html+++ b/server/mail-templates/inactive-user-deletion/warn_11m.html@@ -1,11 +1,10 @@{{template "ente_base" .}}{{define "content"}}-<p>Hello,</p>+<p>Hi,</p>-<p>Your Ente account has been inactive for about 11 months.</p>-<p>If you want to keep your account active, open any Ente app and sign in again.</p>-<p>If no activity is seen, we will continue to send inactivity reminders.</p>--<p>Regards,<br/>Team Ente</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>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>{{end}}diff --git a/server/mail-templates/inactive-user-deletion/warn_12m_1d.html b/server/mail-templates/inactive-user-deletion/warn_12m_1d.htmlindex f0288a4bdc..28643f38b7 100644--- a/server/mail-templates/inactive-user-deletion/warn_12m_1d.html+++ b/server/mail-templates/inactive-user-deletion/warn_12m_1d.html@@ -1,11 +1,10 @@{{template "ente_base" .}}{{define "content"}}-<p>Hello,</p>+<p>Hi,</p>-<p>Your Ente account is still inactive.</p>-<p>This is the final reminder before the 12-month inactivity milestone.</p>-<p>Open any Ente app and sign in to reset the inactivity counter.</p>--<p>Regards,<br/>Team Ente</p>+<p>We're reaching out because your Ente account hasn't been used across any of our apps for 12 months or more.</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>{{end}}diff --git a/server/mail-templates/inactive-user-deletion/warn_12m_7d.html b/server/mail-templates/inactive-user-deletion/warn_12m_7d.htmlindex 3fa8ffd54a..c8c055b948 100644--- a/server/mail-templates/inactive-user-deletion/warn_12m_7d.html+++ b/server/mail-templates/inactive-user-deletion/warn_12m_7d.html@@ -1,11 +1,10 @@{{template "ente_base" .}}{{define "content"}}-<p>Hello,</p>+<p>Hi,</p>-<p>Your Ente account is still inactive.</p>-<p>This is a reminder sent 7 days before the 12-month inactivity mark.</p>-<p>Open any Ente app and sign in to reset the inactivity counter.</p>--<p>Regards,<br/>Team Ente</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>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>{{end}}diff --git a/server/pkg/controller/user/inactive_user_orchestrator.go b/server/pkg/controller/user/inactive_user_orchestrator.goindex 1b34ca8826..2d2b7ee82b 100644--- a/server/pkg/controller/user/inactive_user_orchestrator.go+++ b/server/pkg/controller/user/inactive_user_orchestrator.go@@ -4,6 +4,7 @@ import ("errors""fmt""strings"+ stdtime "time""github.com/ente-io/museum/ente""github.com/ente-io/museum/pkg/controller/discord"@@ -32,10 +33,10 @@ const (inactiveUserDeletionWarn12m1dTemplate = "inactive-user-deletion/warn_12m_1d.html"inactiveUserDeletionFinalTemplate = "inactive-user-deletion/confirm_12m.html"- inactiveUserDeletionWarn11mSubject = "Your Ente account has been inactive"- inactiveUserDeletionWarn12m7dSubject = "Reminder: your Ente account is still inactive"- inactiveUserDeletionWarn12m1dSubject = "Final reminder: your Ente account is inactive"- inactiveUserDeletionFinalSubject = "Your Ente account is marked for manual deletion review"+ inactiveUserDeletionWarn11mSubject = "Your Ente account is scheduled for deletion due to inactivity"+ inactiveUserDeletionWarn12m7dSubject = "Reminder: Your Ente account will be deleted in 7 days due to inactivity"+ inactiveUserDeletionWarn12m1dSubject = "REMINDER: Your Ente account will be deleted tomorrow due to inactivity"+ inactiveUserDeletionFinalSubject = "Your Ente account has been deleted")const (@@ -169,7 +170,8 @@ func (c *InactiveUserOrchestrator) processCandidate(candidate repo.UserInactivit}templateData := map[string]interface{}{- "Email": user.Email,+ "Email": user.Email,+ "DeletionDate": formatDeletionDate(candidate.LastActivity),}if err := emailUtil.SendTemplatedEmailV2([]string{user.Email},@@ -282,3 +284,8 @@ func inactivityStageConfig(stage inactivityEmailStage) inactivityEmailStageConfifunc isEnteDomainRolloutUser(email string) bool {return strings.HasSuffix(strings.ToLower(strings.TrimSpace(email)), "@ente.io")}++func formatDeletionDate(lastActivity int64) string {+ deletionTime := stdtime.UnixMicro(lastActivity + inactiveUserTwelveMonthsInMicroSeconds).UTC()+ return deletionTime.Format("02 Jan 2006")+}