* "Brown paper bag" fix for SMTP bug (incoming long fields crash logger)
authorArt Cancro <ajc@citadel.org>
Mon, 20 Mar 2000 14:43:20 +0000 (14:43 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 20 Mar 2000 14:43:20 +0000 (14:43 +0000)
citadel/ChangeLog
citadel/internet_addressing.c
citadel/network/mail.sysinfo

index 78ba3f8d8b0c1a9d2498457b321fe90a75f71d5f..f80f95c8e073121fe332c9c4b8d86fae78797e1a 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 570.1  2000/03/20 14:43:19  ajc
+ * "Brown paper bag" fix for SMTP bug (incoming long fields crash logger)
+
  Revision 570.0  2000/03/19 23:42:34  ajc
  * This is the official 5.70 release.
 
@@ -1768,4 +1771,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * Initial CVS import 
-
index a6c7eabe9a7aeee746c0e1636c13df3cf65fac45..3ec2d6a6c55c64fbe9926b6f2a402c6705055a8c 100644 (file)
@@ -287,8 +287,6 @@ void try_name(struct usersupp *us, void *data) {
        struct trynamebuf *tnb;
        tnb = (struct trynamebuf *)data;
 
-       lprintf(9, "Trying <%s>\n", us->fullname);
-       
        if (!strncasecmp(tnb->buffer1, "cit", 3))
                if (atol(&tnb->buffer1[3]) == us->usernum)
                        strcpy(tnb->buffer2, us->fullname);
@@ -422,8 +420,6 @@ int convert_field(struct CtdlMessage *msg, int beg, int end) {
        value = &key[(colonpos - beg) + 1];
        unfold_rfc822_field(value);
 
-       lprintf(9, "Key=<%s> Value=<%s>\n", key, value);
-
        /*
         * Here's the big rfc822-to-citadel loop.
         */
@@ -434,8 +430,6 @@ int convert_field(struct CtdlMessage *msg, int beg, int end) {
        if (!strcasecmp(key, "Date")) {
                parsed_date = parsedate(value);
                if (parsed_date < 0L) parsed_date = time(NULL);
-               lprintf(9, "Parsed date is %s",
-                       asctime(localtime(&parsed_date)));
                snprintf(buf, sizeof buf, "%ld", parsed_date );
                if (msg->cm_fields['T'] == NULL)
                        msg->cm_fields['T'] = strdoop(buf);
@@ -484,10 +478,6 @@ int convert_field(struct CtdlMessage *msg, int beg, int end) {
                        }
                }
 
-               if (msg->cm_fields['I'] != NULL) {
-                       lprintf(9, "Converted message id <%s>\n",
-                               msg->cm_fields['I'] );
-               }
                processed = 1;
        }
 
@@ -523,7 +513,6 @@ struct CtdlMessage *convert_internet_message(char *rfc822) {
 
        while (!done) {
 
-               TRACE; lprintf(9, "I field is %s\n", msg->cm_fields['I']);
                /* Locate beginning and end of field, keeping in mind that
                 * some fields might be multiline
                 */
@@ -557,7 +546,6 @@ struct CtdlMessage *convert_internet_message(char *rfc822) {
        }
 
        /* Follow-up sanity checks... */
-       TRACE; lprintf(9, "I field is %s\n", msg->cm_fields['I']);
 
        /* If there's no timestamp on this message, set it to now. */
        if (msg->cm_fields['T'] == NULL) {
@@ -565,7 +553,6 @@ struct CtdlMessage *convert_internet_message(char *rfc822) {
                msg->cm_fields['T'] = strdoop(buf);
        }
 
-       TRACE; lprintf(9, "I field is %s\n", msg->cm_fields['I']);
        lprintf(9, "RFC822 length remaining after conversion = %d\n",
                strlen(rfc822));
        return msg;
index 5437c78ae5c8551f945eca251f18a46ea072f359..5237971b8adbfd4e340f7c4bd524bf2cb88caa90 100644 (file)
@@ -10,12 +10,12 @@ use uncnsrd
 phonenum netproc[7145]: Adding non-neighbor system <internet> to map
 gdom or system <internet> to map
 humannode BCCS
-lastcontact 953246224 Thu Mar 16 17:37:04 2000
+lastcontact 953519823 Sun Mar 19 21:37:03 2000
 
 internet
 uum %s
 humannode Internet Gateway
-lastcontact 953440623 Sat Mar 18 23:37:03 2000
+lastcontact 953559424 Mon Mar 20 08:37:04 2000
 
 uncnsrd
 bin Mail
@@ -36,14 +36,14 @@ tesseract
 bin Mail
 phonenum US 800 555 1212
 humannode Tesseract Project
-lastcontact 953440623 Sat Mar 18 23:37:03 2000
+lastcontact 953559424 Mon Mar 20 08:37:04 2000
 
 pixel
 use uncnsrd
 phonenum netproc[4026]: Adding non-neighbor system <tesseract> to map
 gdom or system <tesseract> to map
 humannode PixelBBS
-lastcontact 953271423 Fri Mar 17 00:37:03 2000
+lastcontact 953527024 Sun Mar 19 23:37:04 2000
 
 barbaria
 use uncnsrd