fixed wrong spelling in menu
authorChristoph Hohmann <reboot@gmx.ch>
Fri, 24 Aug 2001 17:29:18 +0000 (17:29 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Fri, 24 Aug 2001 17:29:18 +0000 (17:29 +0000)
fixed new/unread message count with ignored threads

ChangeLog.claws
src/mainwindow.c
src/mbox_folder.c
src/procmsg.c
src/summaryview.c

index b148709..05d9a28 100644 (file)
@@ -5,6 +5,13 @@
                (not working for user entered filename, but
                 for default name and selected filename from
                 file list)
+       * src/mainwindow.c
+               fixed wrong spelling "Folllow-up"
+       * src/mbox_folder.c
+       * src/procmsg.c
+       * src/summaryview.c
+               fixed new/unread message count with ignored
+               threads
 
 2001-08-24 [paul]
 
index 45eae9d..a2dc3ac 100644 (file)
@@ -1270,7 +1270,7 @@ void main_window_set_menu_sensitive(MainWindow *mainwin)
                {"/Message/Get from all accounts", M_UNLOCKED},
                {"/Message/Reply"                , M_SINGLE_TARGET_EXIST},
                {"/Message/Reply to sender"      , M_SINGLE_TARGET_EXIST},
-                {"/Message/Folllow-up and reply to", M_SINGLE_TARGET_EXIST},
+                {"/Message/Follow-up and reply to", M_SINGLE_TARGET_EXIST},
                {"/Message/Reply to all"         , M_SINGLE_TARGET_EXIST},
                {"/Message/Forward"              , M_SINGLE_TARGET_EXIST},
                {"/Message/Forward as attachment", M_SINGLE_TARGET_EXIST},
index 8c5f7ec..e125383 100644 (file)
@@ -1717,9 +1717,9 @@ void mbox_scan_folder(Folder *folder, FolderItem *item)
                        struct _message * msg = (struct _message *) l->data;
                        if (!MSG_IS_REALLY_DELETED(msg->flags))
                                total ++;
-                       if (MSG_IS_NEW(msg->flags) /*&& !MSG_IS_IGNORE_THREAD(msg->flags)*/)
+                       if (MSG_IS_NEW(msg->flags) && !MSG_IS_IGNORE_THREAD(msg->flags))
                                new ++;
-                       if (MSG_IS_UNREAD(msg->flags) /*&& !MSG_IS_IGNORE_THREAD(msg->flags)*/)
+                       if (MSG_IS_UNREAD(msg->flags) && !MSG_IS_IGNORE_THREAD(msg->flags))
                                unread ++;
                }
                
index 394722e..a22c92e 100644 (file)
@@ -401,10 +401,8 @@ static void mark_sum_func(gpointer key, gpointer value, gpointer data)
        MsgFlags *flags = value;
        struct MarkSum *marksum = data;
 
-       /*if (MSG_IS_NEW(*flags) && !MSG_IS_IGNORE_THREAD(*flags)) (*marksum->new)++;*/
-        if (MSG_IS_NEW(*flags)) (*marksum->new)++;
-       /*if (MSG_IS_UNREAD(*flags) && !MSG_IS_IGNORE_THREAD(*flags)) (*marksum->unread)++;*/
-       if (MSG_IS_UNREAD(*flags)) (*marksum->unread)++;
+       if (MSG_IS_NEW(*flags) && !MSG_IS_IGNORE_THREAD(*flags)) (*marksum->new)++;
+       if (MSG_IS_UNREAD(*flags) && !MSG_IS_IGNORE_THREAD(*flags)) (*marksum->unread)++;
        (*marksum->total)++;
 }
 
index c3c22cb..df7bf4a 100644 (file)
@@ -1910,8 +1910,7 @@ static void summary_set_ctree_from_list(SummaryView *summaryview,
                        }
                        if(parent) {
                                parentinfo = gtk_ctree_node_get_row_data(ctree, parent);
-                               if(parentinfo && MSG_IS_IGNORE_THREAD(parentinfo->flags)) {
-
+                               if(!MSG_IS_IGNORE_THREAD(msginfo->flags) && parentinfo && MSG_IS_IGNORE_THREAD(parentinfo->flags)) {
                                        if (MSG_IS_NEW(msginfo->flags))
                                                summaryview->newmsgs--;
                                        if (MSG_IS_UNREAD(msginfo->flags))
@@ -4137,7 +4136,7 @@ static void summary_ignore_thread_func(GtkCTree *ctree, GtkCTreeNode *row, gpoin
        MSG_SET_PERM_FLAGS(msginfo->flags, MSG_IGNORE_THREAD);
 
        CHANGE_FLAGS(msginfo);
-               
+
        summary_set_row_marks(summaryview, row);
        debug_print(_("Message %d is marked as ignore thread\n"),
            msginfo->msgnum);