4 * This file contains functions which handle the mapping of Internet addresses
5 * to users on the Citadel system.
16 #include <sys/types.h>
24 #include "sysdep_decls.h"
25 #include "citserver.h"
29 #include "internet_addressing.h"
32 * Return 0 if a given string fuzzy-matches a Citadel user account
34 * FIX ... this needs to be updated to match any and all ways of addressing
35 * a user. It may even be appropriate to move this out of SMTP and
36 * into the server core.
38 int fuzzy_match(struct usersupp *us, char *matchstring) {
41 for (a=0; a<strlen(us->fullname); ++a) {
42 if (!strncasecmp(&us->fullname[a],
43 matchstring, strlen(matchstring))) {