]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_smtp.c
* internet_addressing.c: added. (Internet address to Citadel mapping)
[citadel.git] / citadel / serv_smtp.c
index 687ccd0e482f862f6c4a6f5768e2b3f0777e2dc6..2829c3341a25f2e4e524d47bb2031c7c9d526f59 100644 (file)
@@ -29,6 +29,7 @@
 #include "database.h"
 #include "msgbase.h"
 #include "tools.h"
+#include "internet_addressing.h"
 
 struct citsmtp {
        int command_state;
@@ -157,26 +158,6 @@ void smtp_auth(char *argbuf) {
 }
 
 
-/*
- * Return 0 if a given string fuzzy-matches a Citadel user account
- *
- * FIX ... this needs to be updated to match any and all ways of addressing
- *         a user.  It may even be appropriate to move this out of SMTP and
- *         into the server core.
- */
-int fuzzy_match(struct usersupp *us, char *matchstring) {
-       int a;
-
-       for (a=0; a<strlen(us->fullname); ++a) {
-               if (!strncasecmp(&us->fullname[a],
-                  matchstring, strlen(matchstring))) {
-                       return 0;
-               }
-       }
-       return -1;
-}
-
-
 /*
  * Back end for smtp_vrfy() command
  */