diff --git a/database/src/types.rs b/database/src/types.rs index 261fd23..f570c01 100644 --- a/database/src/types.rs +++ b/database/src/types.rs @@ -16,7 +16,7 @@ use {Error, Result}; /// - Lower-case the whole thing using the empty locale /// /// See https://autocrypt.org/level1.html#e-mail-address-canonicalization -#[derive(Serialize, Deserialize, Clone, Debug, Hash, PartialEq, Eq)] +#[derive(Serialize, Deserialize, Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)] pub struct Email(String); impl Email { diff --git a/dist/templates/email/manage-html.hbs b/dist/templates/email/manage-html.hbs new file mode 100644 index 0000000..7d79853 --- /dev/null +++ b/dist/templates/email/manage-html.hbs @@ -0,0 +1,27 @@ + + +
+ ++ Someone, presumably you, requested that your key will no longer + be available when searching for you email addresses on + {{domain}}. +
++ If it was not you, please ignore this email. +
++ To de-list your key on {{domain}}, + follow this link: +
+ ++ If you do not want to de-list your key, please ignore this + email. + + diff --git a/dist/templates/email/manage-txt.hbs b/dist/templates/email/manage-txt.hbs new file mode 100644 index 0000000..e9b1639 --- /dev/null +++ b/dist/templates/email/manage-txt.hbs @@ -0,0 +1,10 @@ +Someone, presumably you, requested that your key will no longer be +available when searching for you email addresses on {{domain}}. + +If it was not you, please ignore this email. + +To de-list your key on {{domain}}, follow this link: + + {{base_uri}}{{uri}} + +If you do not want to de-list your key, please ignore this email. diff --git a/dist/templates/publish-email-html.hbs b/dist/templates/email/publish-html.hbs similarity index 100% rename from dist/templates/publish-email-html.hbs rename to dist/templates/email/publish-html.hbs diff --git a/dist/templates/publish-email-txt.hbs b/dist/templates/email/publish-txt.hbs similarity index 100% rename from dist/templates/publish-email-txt.hbs rename to dist/templates/email/publish-txt.hbs diff --git a/dist/templates/index.html.hbs b/dist/templates/index.html.hbs index 16a35f9..27acdda 100644 --- a/dist/templates/index.html.hbs +++ b/dist/templates/index.html.hbs @@ -1,7 +1,7 @@ {{#> layout }} {{> search-form}}
Please enter one of your email addesses.
+This management link is invalid or expired. +
You can click here to request a new one. +
+ {{#if published}} + {{address}} + {{else}} + {{address}} + {{/if}} +
+ We have sent an email with further instructions to {{address}}. +
+