diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-07-25 09:19:12 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-07-25 09:19:12 +0000 |
commit | 41b460724c6455eae000ab3dfbfa5553a597e030 (patch) | |
tree | 1a4968f09ab7ccbb38241fce3d4f848d2c558c16 /libsylph | |
parent | 16066c7301977f08f712e349ee950c31ebd0eeda (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')
-rw-r--r-- | libsylph/prefs_common.c | 2 | ||||
-rw-r--r-- | libsylph/prefs_common.h | 3 | ||||
-rw-r--r-- | libsylph/procmime.c | 11 |
3 files changed, 14 insertions, 2 deletions
diff --git a/libsylph/prefs_common.c b/libsylph/prefs_common.c index c27122fe..b3d5dc48 100644 --- a/libsylph/prefs_common.c +++ b/libsylph/prefs_common.c @@ -329,6 +329,8 @@ static PrefParam param[] = { {"display_header_pane", "TRUE", &prefs_common.display_header_pane, P_BOOL}, {"show_attach_tab", "FALSE", &prefs_common.show_attach_tab, P_BOOL}, + {"show_attached_files_first", "TRUE", + &prefs_common.show_attached_files_first, P_BOOL}, {"display_header", "TRUE", &prefs_common.display_header, P_BOOL}, {"render_html", "TRUE", &prefs_common.render_html, P_BOOL}, {"html_only_as_attach", "FALSE", &prefs_common.html_only_as_attach, diff --git a/libsylph/prefs_common.h b/libsylph/prefs_common.h index 47f1c16d..e8c7f07b 100644 --- a/libsylph/prefs_common.h +++ b/libsylph/prefs_common.h @@ -338,7 +338,8 @@ struct _PrefsCommon gboolean enable_newmsg_notify_sound; /* Receive */ gchar *newmsg_notify_sound; /* Receive */ - gboolean show_attach_tab; /* Message */ + gboolean show_attach_tab; /* Message - Attachment */ + gboolean show_attached_files_first; /* Message - Attachment */ }; extern PrefsCommon prefs_common; 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) |