httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From max...@apache.org
Subject svn commit: r330582 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c
Date Thu, 03 Nov 2005 17:10:07 GMT
Author: maxime
Date: Thu Nov  3 09:10:00 2005
New Revision: 330582

URL: http://svn.apache.org/viewcvs?rev=330582&view=rev
Log:
Use text/plain as default Content-Type

Modified:
    httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c

Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c?rev=330582&r1=330581&r2=330582&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_mime.c Thu Nov  3 09:10:00 2005
@@ -38,11 +38,11 @@
 
     /* If no Content-Type is provided, it means that we are parsing a
        sub-part of the multipart message. The Content-Type header
-       should then be the first line of the part. If not, just ignore
-       the sub-part. */
+       should then be the first line of the part. If not, use
+       text/plain as default for the sub-part. */
     tmp = strstr(body, "Content-Type: ");
     if (!ct && (!tmp || tmp > headers_bound)) {
-        return NULL;
+      ct = "text/plain";
     }
 
     mail = calloc(1, sizeof(mbox_mime_message_t));



Mime
View raw message