chiark / gitweb /
update CHANGES.html
[disorder] / server / server.c
index ad3a7ab9e773663ad6989fc883fe03339fa68426..c4c889a448f909d6b9bcff26dc14d90d6760735b 100644 (file)
@@ -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;