X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Finternet_addressing.c;h=7914da90668cfeaa359115bbb0f9d07c439dcfb1;hp=a3ef1f815d01bb5c59d6d61573f717b4c13603c2;hb=45dec175706ba376d19f66d7eeac6f71b87ef810;hpb=f131d85177c6dd27138061d8be7c078030906b7c diff --git a/citadel/internet_addressing.c b/citadel/internet_addressing.c index a3ef1f815..7914da906 100644 --- a/citadel/internet_addressing.c +++ b/citadel/internet_addressing.c @@ -935,31 +935,6 @@ char *qp_encode_email_addrs(char *source) } -/* - * Return 0 if a given string fuzzy-matches a Citadel user account - * - * FIXME ... this needs to be updated to handle aliases. - */ -int fuzzy_match(struct ctdluser *us, char *matchstring) { - int a; - long len; - - if ( (!strncasecmp(matchstring, "cit", 3)) - && (atol(&matchstring[3]) == us->usernum)) { - return 0; - } - - len = strlen(matchstring); - for (a=0; !IsEmptyStr(&us->fullname[a]); ++a) { - if (!strncasecmp(&us->fullname[a], - matchstring, len)) { - return 0; - } - } - return -1; -} - - /* * Unfold a multi-line field into a single line, removing multi-whitespaces */