After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 608457 - Evolution : incorrect number of mails in a virtual folder
Evolution : incorrect number of mails in a virtual folder
Status: RESOLVED OBSOLETE
Product: evolution
Classification: Applications
Component: Mailer
2.30.x (obsolete)
Other Solaris
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[vfolders]
: 623367 (view as bug list)
Depends on:
Blocks: 543389
 
 
Reported: 2010-01-29 15:42 UTC by Jeff Cai
Modified: 2011-11-18 05:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
If junk plugin is not installed, the message flags should also be set (1.60 KB, patch)
2010-01-29 15:43 UTC, Jeff Cai
reviewed Details | Review

Description Jeff Cai 2010-01-29 15:42:35 UTC
1 - create a search folder with this parameters :

    Rule name: Hier
    Search Folder Sources : select "specific folders" with this parameter => your IMAP INBOX folder like this imap:pk142468@mail-emea.sun.com/INBOX
    Conditions : Date received is before 12 hours ago
                        Date received is after 2 days ago

2 - reload Evolution
3 - check in this search folder if you can see emails from yesterday
4 - if so, select in your INBOX folder 2 emails that are older that 12 hours and set the flag "unread" on both

Result : the search folder should show this two emails as unread and in same time the count of unread emails show increase from 2 units. It display the right list but the counter value is not correct.
Comment 1 Jeff Cai 2010-01-29 15:42:56 UTC
This bug can not be reproduced on Linux.
Comment 2 Jeff Cai 2010-01-29 15:43:55 UTC
Created attachment 152587 [details] [review]
If junk plugin is not installed, the message flags should also be set
Comment 3 Akhil Laddha 2010-02-01 03:35:09 UTC
looks related to bug 569576
Comment 4 Milan Crha 2010-02-09 15:22:15 UTC
The change doesn't seem to do anything apart of making the CPU busy with a 'for' and with a call to camel_folder_get_message_flags, which is rather workarounding the real issue with unnoticed changes for a search folder, isn't it?

I guess that camel_folder_get_message_flags ensures the message info is loaded in memory, and makes it available for a search folder. Maybe the search folder's checking for "folder_changed" or invocation of it for some providers doesn't do that correctly.

(In reply to comment #1)
> This bug can not be reproduced on Linux.

Where are you running it then? :)
Comment 5 Jeff Cai 2010-03-01 09:51:41 UTC
(In reply to comment #4)
> The change doesn't seem to do anything apart of making the CPU busy with a
> 'for' and with a call to camel_folder_get_message_flags, which is rather
> workarounding the real issue with unnoticed changes for a search folder, isn't
> it?
> 
> I guess that camel_folder_get_message_flags ensures the message info is loaded
> in memory, and makes it available for a search folder. Maybe the search
> folder's checking for "folder_changed" or invocation of it for some providers
> doesn't do that correctly.
> 
> (In reply to comment #1)
> > This bug can not be reproduced on Linux.
> 
> Where are you running it then? :)

Solairs.
Comment 6 Akhil Laddha 2010-07-02 13:00:52 UTC
*** Bug 623367 has been marked as a duplicate of this bug. ***
Comment 7 Milan Crha 2011-08-23 11:44:06 UTC
Hrm, I forgot of this, I'm sorry. I made same changes in bug #562912, which also influences (not only unread) counts on search folders, and as far as I can tell it works as it should with that change. It'll be available within 3.0.3 release, which may be done soon. Could you try that version on your Solaris system, whether it'll work for you too, please? (Also note of bug #562912 comment #15.)
Comment 8 Akhil Laddha 2011-10-07 05:45:49 UTC
Jeff, ping, do you any update with Evolution 3.0.3 or Evolution 3.2.0 ?
Comment 9 Akhil Laddha 2011-11-18 05:51:46 UTC
Please feel free to reopen this bug if the problem still occurs with a newer
version of Evolution.