2009-03-07 [colin] 3.7.1cvs5
authorColin Leroy <colin@colino.net>
Sat, 7 Mar 2009 11:17:59 +0000 (11:17 +0000)
committerColin Leroy <colin@colino.net>
Sat, 7 Mar 2009 11:17:59 +0000 (11:17 +0000)
* src/messageview.c
Don't let the invalid MIME warning hide
other noticeview (Partial receive or
return receipt).

ChangeLog
PATCHSETS
configure.ac
src/messageview.c

index 81130a382f4d78ca9649418b724742e7d4df3a38..c658c7bd046d5327fdd046c2cdc92db22db2ed24 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-03-07 [colin]     3.7.1cvs5
+
+       * src/messageview.c
+               Don't let the invalid MIME warning hide
+               other noticeview (Partial receive or 
+               return receipt).
+
 2009-03-07 [colin]     3.7.1cvs4
 
        * src/procmime.c
index 891e1901206f4bbbd5801aa3f132ac9539798daf..63aa9bb7277effb8c7a3c7a3d07f4c4eeec41624 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.487 -r 1.488 src/compose.c;  cvs diff -u -r 1.10 -r 1.11 src/folder_item_prefs.c;  cvs diff -u -r 1.6 -r 1.7 src/folder_item_prefs.h;  cvs diff -u -r 1.65 -r 1.66 src/prefs_folder_item.c;  ) > 3.7.1cvs2.patchset
 ( cvs diff -u -r 1.94.2.200 -r 1.94.2.201 src/messageview.c;  cvs diff -u -r 1.49.2.127 -r 1.49.2.128 src/procmime.c;  cvs diff -u -r 1.17.2.23 -r 1.17.2.24 src/procmime.h;  ) > 3.7.1cvs3.patchset
 ( cvs diff -u -r 1.49.2.128 -r 1.49.2.129 src/procmime.c;  ) > 3.7.1cvs4.patchset
+( cvs diff -u -r 1.94.2.201 -r 1.94.2.202 src/messageview.c;  ) > 3.7.1cvs5.patchset
index e75c7320894dad319a68920fd9d95839100afea6..2a64fe607f1e230db48f9da71f23613ebef374bd 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=7
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=4
+EXTRA_VERSION=5
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index fbeed65a77c6cc1ed73a756a1b8b3735a687c113..70d033e59d8fb51c731c8d9505e6b05532861849 100644 (file)
@@ -1226,17 +1226,6 @@ gint messageview_show(MessageView *messageview, MsgInfo *msginfo,
                }
        }
                        
-       while ((brokeninfo = find_broken_part(mimeinfo)) != NULL) {
-               noticeview_show(messageview->noticeview);
-               noticeview_set_icon(messageview->noticeview,
-                                   STOCK_PIXMAP_NOTICE_WARN);
-               noticeview_set_text(messageview->noticeview, _("Message doesn't conform to MIME standard. "
-                                       "It may render wrongly."));
-               gtk_widget_hide(messageview->noticeview->button);
-               gtk_widget_hide(messageview->noticeview->button2);
-               break;
-       }
-                       
        if (messageview->msginfo != msginfo) {
                procmsg_msginfo_free(messageview->msginfo);
                messageview->msginfo = NULL;
@@ -1305,6 +1294,27 @@ gint messageview_show(MessageView *messageview, MsgInfo *msginfo,
                return_receipt_show(messageview->noticeview, 
                                    messageview->msginfo);
 
+       while ((brokeninfo = find_broken_part(mimeinfo)) != NULL) {
+               noticeview_show(messageview->noticeview);
+               noticeview_set_icon(messageview->noticeview,
+                                   STOCK_PIXMAP_NOTICE_WARN);
+               if (!noticeview_is_visible(messageview->noticeview)) {
+                       noticeview_set_text(messageview->noticeview, _("Message doesn't conform to MIME standard. "
+                                               "It may render wrongly."));
+                       gtk_widget_hide(messageview->noticeview->button);
+                       gtk_widget_hide(messageview->noticeview->button2);
+               } else {
+                       gchar *full = g_strconcat(
+                                       gtk_label_get_text(GTK_LABEL(messageview->noticeview->text)), 
+                                       "\n", 
+                                       _("Message doesn't conform to MIME standard. "
+                                       "It may render wrongly."), NULL);
+                       noticeview_set_text(messageview->noticeview, full);
+                       g_free(full);
+               }
+               break;
+       }
+                       
        mimeinfo = procmime_mimeinfo_next(mimeinfo);
        if (!all_headers && mimeinfo 
                        && (mimeinfo->type != MIMETYPE_TEXT ||