aboutsummaryrefslogtreecommitdiff
path: root/libsylph/procmime.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-07-25 09:19:12 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2012-07-25 09:19:12 +0000
commit41b460724c6455eae000ab3dfbfa5553a597e030 (patch)
tree1a4968f09ab7ccbb38241fce3d4f848d2c558c16 /libsylph/procmime.c
parent16066c7301977f08f712e349ee950c31ebd0eeda (diff)
improved the new attachmemts interface.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3134 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/procmime.c')
-rw-r--r--libsylph/procmime.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libsylph/procmime.c b/libsylph/procmime.c
index 182dafad..e2c7fdb4 100644
--- a/libsylph/procmime.c
+++ b/libsylph/procmime.c
@@ -40,7 +40,8 @@
#include "utils.h"
#include "prefs_common.h"
-#undef MIME_DEBUG
+//#undef MIME_DEBUG
+#define MIME_DEBUG
#ifdef MIME_DEBUG
# define mime_debug_print debug_print
#else
@@ -252,6 +253,7 @@ void procmime_scan_multipart_message(MimeInfo *mimeinfo, FILE *fp)
return;
}
+ mime_debug_print("==== enter part\n");
mime_debug_print("level = %d\n", mimeinfo->level);
for (;;) {
@@ -286,6 +288,10 @@ void procmime_scan_multipart_message(MimeInfo *mimeinfo, FILE *fp)
procmime_mimeinfo_insert(mimeinfo, partinfo);
mime_debug_print("content-type: %s\n",
partinfo->content_type);
+ if (partinfo->filename)
+ mime_debug_print("filename: %s\n", partinfo->filename);
+ else if (partinfo->name)
+ mime_debug_print("name: %s\n", partinfo->name);
}
/* begin content */
@@ -295,6 +301,8 @@ void procmime_scan_multipart_message(MimeInfo *mimeinfo, FILE *fp)
if (partinfo->mime_type == MIME_MULTIPART ||
partinfo->mime_type == MIME_MESSAGE_RFC822) {
if (partinfo->level < MAX_MIME_LEVEL)
+ mime_debug_print("\n");
+ mime_debug_print("enter to child part:\n");
procmime_scan_multipart_message(partinfo, fp);
}
@@ -354,6 +362,7 @@ void procmime_scan_multipart_message(MimeInfo *mimeinfo, FILE *fp)
}
g_free(buf);
+ mime_debug_print("==== leave part\n");
}
void procmime_scan_encoding(MimeInfo *mimeinfo, const gchar *encoding)