[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    [PATCH] fix for regression in unread count when having ignored threads
From:       Andreas Gungl <a.gungl () gmx ! de>
Date:       2005-09-29 20:09:41
Message-ID: 200509292209.42041 () gungl-dd ! de
[Download RAW message or body]

Hi, I propose the following patch to fix that regression. I've tested it for 
maildir and mbox folders and it works quite fine there. I plan to test it on 
a dIMAP account tomorrow. Can those of you who see the regression (e.g. 
ThomasZ) give it a try as well? It's only a couple of lines, almost too 
simple, actually.

TIA
Andreas

["kmail-unread-count-regression.diff" (text/x-diff)]

Index: folderstorage.cpp
===================================================================
--- folderstorage.cpp	(Revision 465424)
+++ folderstorage.cpp	(Arbeitskopie)
@@ -818,10 +818,12 @@
   int oldUnread = 0;
   int newUnread = 0;
 
-  if (oldStatus & KMMsgStatusUnread || oldStatus & KMMsgStatusNew ||
+  if (((oldStatus & KMMsgStatusUnread || oldStatus & KMMsgStatusNew) &&
+      !(oldStatus & KMMsgStatusIgnored)) ||
       (folder() == kmkernel->outboxFolder()))
     oldUnread = 1;
-  if (newStatus & KMMsgStatusUnread || newStatus & KMMsgStatusNew ||
+  if (((newStatus & KMMsgStatusUnread || newStatus & KMMsgStatusNew) &&
+      !(newStatus & KMMsgStatusIgnored)) ||
       (folder() == kmkernel->outboxFolder()))
     newUnread = 1;
   int deltaUnread = newUnread - oldUnread;


_______________________________________________
KMail developers mailing list
KMail-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmail-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic