correct image mime headers
authorPaul Mangan <paul@claws-mail.org>
Sat, 28 Jul 2001 08:21:36 +0000 (08:21 +0000)
committerPaul Mangan <paul@claws-mail.org>
Sat, 28 Jul 2001 08:21:36 +0000 (08:21 +0000)
AUTHORS
ChangeLog.claws
src/procmime.c

diff --git a/AUTHORS b/AUTHORS
index 2dc11ef..fe64bae 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -75,3 +75,4 @@ contributors (beside the above; based on Changelog)
        Satoshi Nagayasu
        Jens Oberender
        Ricardo Mones Lastra
+       Don Quijote
\ No newline at end of file
index bc97190..d7afb9f 100644 (file)
@@ -1,3 +1,10 @@
+2001-07-28 [paul]
+
+       * src/procmime.c
+       * AUTHORS
+               patch to correct bad image mime headers
+               (submitted by Don Quijote <dq@searchlores.org>)
+
 2001-07-28 [paul]
 
        * tools/gif2xface.pl   **NEW FILE**
index 89bca6b..4e1d761 100644 (file)
@@ -487,6 +487,11 @@ MimeInfo *procmime_scan_mime_header(FILE *fp)
                } else if (H_CONTENT_TYPE == hnum) {
                        procmime_scan_content_type
                                (mimeinfo, buf + strlen(hp->name));
+                       if(mimeinfo->name && (mimeinfo->mime_type==MIME_APPLICATION_OCTET_STREAM)) {
+                               const gchar *p;
+                               p=procmime_get_mime_type(mimeinfo->name);
+                               if(p) procmime_scan_content_type(mimeinfo,p);
+                       }
                } else if (H_CONTENT_DISPOSITION == hnum) {
                        procmime_scan_content_disposition
                                (mimeinfo, buf + strlen(hp->name));