]> code.citadel.org Git - citadel.git/blobdiff - citadel/internet_addressing.c
* Replaced citmail.c with a new one that simply SMTP-forwards to Citadel
[citadel.git] / citadel / internet_addressing.c
index 837279aabea9187ebd2808836908a0f680a2c2b6..1eda2ae400d92fa8a0641474e4e95093bf366d1d 100644 (file)
@@ -348,14 +348,6 @@ int convert_field(struct CtdlMessage *msg, int beg, int end) {
                processed = 1;
        }
 
-       /* If a content type is specified, this becomes a MIME message.  The
-        * content-type header itself remains in the RFC822 headers, not in
-        * the Citadel headers, therefore we do not set 'processed' to 1.
-        */
-       else if (!strcasecmp(key, "Content-type")) {
-               msg->cm_format_type = 4;
-       }
-
        /* Clean up and move on. */
        phree(key);     /* Don't free 'value', it's actually the same buffer */
        return(processed);
@@ -379,7 +371,7 @@ struct CtdlMessage *convert_internet_message(char *rfc822) {
        memset(msg, 0, sizeof(struct CtdlMessage));
        msg->cm_magic = CTDLMESSAGE_MAGIC;      /* self check */
        msg->cm_anon_type = 0;                  /* never anonymous */
-       msg->cm_format_type = 1;                /* text unless specified */
+       msg->cm_format_type = FMT_RFC822;       /* internet message */
        msg->cm_fields['M'] = rfc822;
 
        lprintf(9, "Unconverted RFC822 message length = %d\n", strlen(rfc822));
@@ -409,10 +401,13 @@ struct CtdlMessage *convert_internet_message(char *rfc822) {
 
                /* At this point we have a field.  Are we interested in it? */
                converted = convert_field(msg, beg, end);
+
+               /******
                if (converted) {
                        strcpy(&rfc822[beg], &rfc822[pos]);
                        pos = beg;
                }
+               ********/
 
                /* If we've hit the end of the message, bail out */
                if (pos > strlen(rfc822)) done = 1;