$Log$
+Revision 1.428 1999/12/10 23:58:25 ajc
+* internet_addressing.c: added. (Internet address to Citadel mapping)
+
Revision 1.427 1999/12/10 21:34:19 ajc
* serv_smtp: implemented RFC821 "VRFY" and "EXPN" commands
Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Initial CVS import
+
support.c sysdep.c tools.c user_ops.c userlist.c serv_expire.c \
whobbs.c sendcommand.c mime_parser.c base64.c qpdecode.c getutline.c \
auth.c chkpwd.c client_icq.c html.c vcard.c serv_upgrade.c \
- serv_smtp.c
+ serv_smtp.c internet_addressing.c
DEP_FILES=$(SOURCES:.c=.d)
SERV_OBJS = citserver.ro user_ops.ro support.ro room_ops.ro file_ops.ro \
msgbase.ro config.ro sysdep.ro locate_host.ro housekeeping.ro \
database.ro control.ro logging.ro policy.ro dynloader.ro tools.ro \
- mime_parser.ro html.ro $(AUTH) $(LIBOBJS:.o=.ro)
+ mime_parser.ro html.ro internet_addressing.ro \
+ $(AUTH) $(LIBOBJS:.o=.ro)
citserver: $(SERV_OBJS)
$(CC) $(SERV_OBJS) $(LDFLAGS) $(SERVER_LDFLAGS) $(LIBS) $(NETLIBS) $(GDBM) -o citserver
--- /dev/null
+/*
+ * $Id$
+ *
+ * This file contains functions which handle the mapping of Internet addresses
+ * to users on the Citadel system.
+ */
+
+#include "sysdep.h"
+#include <stdlib.h>
+#include <unistd.h>
+#include <stdio.h>
+#include <fcntl.h>
+#include <signal.h>
+#include <pwd.h>
+#include <errno.h>
+#include <sys/types.h>
+#include <sys/time.h>
+#include <sys/wait.h>
+#include <string.h>
+#include <limits.h>
+#include "citadel.h"
+#include "server.h"
+#include <time.h>
+#include "sysdep_decls.h"
+#include "citserver.h"
+#include "support.h"
+#include "config.h"
+#include "tools.h"
+#include "internet_addressing.h"
+
+/*
+ * 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;
+}
+
+
--- /dev/null
+int fuzzy_match(struct usersupp *us, char *matchstring);
#include "database.h"
#include "msgbase.h"
#include "tools.h"
+#include "internet_addressing.h"
struct citsmtp {
int command_state;
}
-/*
- * 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
*/