X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/0eaf64e8d26c08228401fa89741c63fc2ff064c3..bdd2a99650780a1ef4a9e788eaabbc5e810cc39c:/server/server.c?ds=sidebyside diff --git a/server/server.c b/server/server.c index ad3a7ab..c4c889a 100644 --- a/server/server.c +++ b/server/server.c @@ -1426,9 +1426,8 @@ static int c_reminder(struct conn *c, sink_writes(ev_writer_sink(c->w), "550 Cannot send a reminder email\n"); return 1; } - /* TODO use email_valid() */ if(!(email = kvp_get(k, "email")) - || !strchr(email, '@')) { + || !email_valid(email)) { error(0, "user '%s' has no valid email address", vec[0]); sink_writes(ev_writer_sink(c->w), "550 Cannot send a reminder email\n"); return 1;