oops
authorArt Cancro <ajc@citadel.org>
Mon, 19 Jul 1999 03:43:41 +0000 (03:43 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 19 Jul 1999 03:43:41 +0000 (03:43 +0000)
citadel/citmail.c

index 3f01cd4648a2a347146e6abfdd798a9f5af2b939..b5b4a8cbca4a0501713543148beafa2fcead63ef 100644 (file)
@@ -349,40 +349,6 @@ void loopcopy(FILE * to, FILE * from)
 
 
 
-/*
- * Try to extract a numeric message ID
- */
-long extract_msg_id(char *id_string) {
-       long msgid = 0L;
-       int i, j;
-       char buf[256];
-
-       strncpy(buf, id_string, sizeof buf);
-       id_string[255] = 0;
-
-       for (i=0; i<strlen(buf); ++i) {
-               if (buf[i]=='<') {
-                       strcpy(buf, &buf[i]);
-                       for (j=0; j<strlen(buf); ++j)
-                               if (buf[j]=='>') buf[j]=0;
-               }
-       }
-
-       msgid = atol(buf);
-       if (msgid) return(msgid);
-
-       for (i=0; i<strlen(buf); ++i) {
-               if (!isdigit(buf[i])) {
-                       strcpy(&buf[i], &buf[i+1]);
-                       i = 0;
-               }
-       }
-
-       msgid = atol(buf);
-       return(msgid);
-}
-
-       
 /*
  * pipe message through netproc
  */
@@ -454,8 +420,6 @@ void do_citmail(char recp[], int dtype)
                        now = conv_date(&buf[6]);
                else if (!strncasecmp(buf, "From: ", 6))
                        strcpy(from, &buf[6]);
-               else if (!strncasecmp(buf, "Message-ID: ", 12))
-                       message_id = extract_msg_id(&buf[12]);
                else if (!strncasecmp(buf, "Content-type: ", 14))
                        strcpy(content_type, &buf[14]);
                else if (!strncasecmp(buf, "From ", 5)) {       /* ignore */