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 554531 - search folder don't work anymore
search folder don't work anymore
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.24.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[disk-summary]
: 556124 (view as bug list)
Depends on:
Blocks: 543389
 
 
Reported: 2008-10-01 06:14 UTC by Götz Waschk
Modified: 2009-01-29 16:49 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
evolution start log (215.88 KB, application/x-bzip)
2008-10-17 06:02 UTC, Götz Waschk
  Details
vfolder file (913 bytes, text/plain)
2008-10-17 06:38 UTC, Götz Waschk
  Details
evolution log (7.99 KB, text/plain)
2008-10-19 17:47 UTC, Götz Waschk
  Details
Test patc (638 bytes, patch)
2008-10-21 08:01 UTC, Srinivasa Ragavan
committed Details | Review
screenshot (68.46 KB, image/png)
2008-12-03 10:06 UTC, Götz Waschk
  Details

Description Götz Waschk 2008-10-01 06:14:58 UTC
This is on Mandriva Cooker with evolution 2.24 on GNOME 2.24. Search folders worked fine in evo 2.22 but don't work anymore. I've tried to recreate the folder, but no effect. This is what I've tried:

1. create a folder from a search named "Unread"
2. set the criteria to "Status" "is not" "read"
3. select the folder mbox:Inbox

A folder is created, in the summary, 20509 messages are displayed, althoug the folder Inbox contains only 9044 messages and none of them is unread.
Comment 1 Pascal Terjan 2008-10-01 12:22:51 UTC
Do you have items in spam folder ?
I think "is not" "read" includes "replied" and "spam"
Comment 2 Götz Waschk 2008-10-01 12:26:08 UTC
I don't know. I've selected mbox:Inbox as folder to search, that should exclude the spam folder.
Comment 3 Götz Waschk 2008-10-01 15:46:05 UTC
Deleting all 5 mails from the spam folder made no difference.
Comment 4 Srinivasa Ragavan 2008-10-07 06:12:49 UTC
Gotz, spam may still come up, but not visible.

Is it your count is broken? or you see read mails on the unread vfolder ?
Comment 5 Götz Waschk 2008-10-07 06:47:54 UTC
I have recreated the folder, now the count is right again, but there are still read and even deleted mails in the unread vfolder.
Comment 6 Akhil Laddha 2008-10-14 05:00:37 UTC
*** Bug 556124 has been marked as a duplicate of this bug. ***
Comment 7 Srinivasa Ragavan 2008-10-14 19:06:23 UTC
Gotz, can you paste me your start upload, when you start up  evo with 'export CAMEL_DEBUG=all' ?

It might be huge, just redirect to a file and attach here or email me.
Comment 8 Srinivasa Ragavan 2008-10-17 03:23:14 UTC
Gotz, do you have vfolder of vfolders? It might be due to that.
Comment 9 Götz Waschk 2008-10-17 06:02:51 UTC
Created attachment 120769 [details]
evolution start log

No, both vfolders are of the local inbox.
Comment 10 Srinivasa Ragavan 2008-10-17 06:35:59 UTC
Gotz, are you on irc? I might have to debug a bit more closer. Also can you give me you vfolders.xml file ?
Comment 11 Götz Waschk 2008-10-17 06:38:30 UTC
Created attachment 120770 [details]
vfolder file

Yes, I can meet you on irc.
Comment 12 Srinivasa Ragavan 2008-10-17 06:46:03 UTC
I would like to try on stable branch code. I want to see how it behaves. lots of fixes tehre. its odd, what ever you are facing. just try stable and lemme know.
Comment 13 Götz Waschk 2008-10-17 14:06:07 UTC
I have updated e-d-s to r9687 and evo to r36639. My vfolder "unread" still contains read and deleted messages.
Comment 14 Srinivasa Ragavan 2008-10-18 17:17:06 UTC
Gotz, can you remove vfolder/folders.db and then

export CAMEL_DEBUG=search
evolution > /tmp/log 2>&1

and attach me the /tmp/log file?

Comment 15 Götz Waschk 2008-10-19 17:47:46 UTC
Created attachment 120874 [details]
evolution log
Comment 16 Srinivasa Ragavan 2008-10-20 04:00:54 UTC
Gotz, thanks a lot.

Can you
export CAMEL_DEBUG=vfolderexp

and start evolution.

Collect the console logs and paste me. Gotz, sorry for so many iterations, Its tough debugging remotely, when issues aren't reproduced local. thanks. 

Gotz, can we chat again for 15mins, I hope we can fix it by that time. thanks
Comment 17 Götz Waschk 2008-10-20 05:21:49 UTC
CAMEL_DEBUG=vfolderexp evolution

(evolution:11114): e-utils-WARNING **: can't load plugin '/usr/lib/evolution/2.24/plugins/liborg-gnome-exchange-operations.so': /usr/lib/evolution/2.24/libecontactlisteditor.so.0: undefined symbol: eab_merging_book_add_contact

(evolution:11114): e-utils-WARNING **: can't load plugin '/usr/lib/evolution/2.24/plugins/liborg-gnome-exchange-operations.so': /usr/lib/evolution/2.24/libecontactlisteditor.so.0: undefined symbol: eab_merging_book_add_contact
** (evolution:11114): DEBUG: mailto URL command: evolution %s
** (evolution:11114): DEBUG: mailto URL program: evolution
libnm_glib_nm_state_cb: dbus returned an error.
  (org.freedesktop.DBus.Error.ServiceUnknown) The name org.freedesktop.NetworkManager was not provided by any .service files
Comment 18 Srinivasa Ragavan 2008-10-20 06:21:20 UTC
I'm sorry, you might have to del the vfolders/folders.db before doing this. I assume you have the latest stable branch code [last week or so]
Comment 19 Götz Waschk 2008-10-20 07:14:21 UTC
That doesn't change the output, same as in c#17.
Comment 20 Srinivasa Ragavan 2008-10-21 07:59:47 UTC
Gotz, I think I found the soln for your problem.

<rule enabled="true" grouping="all" source="incoming">
 You have enabled, "Include thread" as "All related", which picks the related mails. I guess this is the same behaviour in 2.22.x also.

Comment 21 Srinivasa Ragavan 2008-10-21 08:01:05 UTC
Created attachment 120992 [details] [review]
Test patc

This helps to get the behaviour of not removing unread messages on reading. Lemme know how it goes.
Comment 22 Götz Waschk 2008-10-22 19:32:12 UTC
My search folders are configured not to include threads. They still contain deleted messages.
Comment 23 Srinivasa Ragavan 2008-11-04 03:46:33 UTC
Sorry,  I misunderstood with "threading=all". Do you have 2.24.1 ? Does it still fail for you? I have some users, for whom unread vfolder is working. So Im just figuring out whatz broken on Evo in your case :(.

Comment 24 Götz Waschk 2008-11-04 08:06:51 UTC
It is still broken in 2.24.1 and also in 2.25.1.
Comment 25 Srinivasa Ragavan 2008-11-04 14:37:01 UTC
Gotz, another try, do export CAMEL_DEBUG=vfolderexp

start evolution, go to the unread vfolder and mark a mail as read and seee the console and paste me. Sorry for the iterations, Im unable to catch your case.
Comment 26 Götz Waschk 2008-11-04 19:39:51 UTC
# CAMEL_DEBUG=vfolderexp evolution

(evolution:27045): e-utils-WARNING **: can't load plugin '/usr/lib/evolution/2.26/plugins/liborg-gnome-exchange-operations.so': /usr/lib/evolution/2.26/libecontactlisteditor.so.0: undefined symbol: eab_merging_book_add_contact

(evolution:27045): e-utils-WARNING **: can't load plugin '/usr/lib/evolution/2.26/plugins/liborg-gnome-exchange-operations.so': /usr/lib/evolution/2.26/libecontactlisteditor.so.0: undefined symbol: eab_merging_book_add_contact
** (evolution:27045): DEBUG: mailto URL command: evolution %s
** (evolution:27045): DEBUG: mailto URL program: evolution
Expression for vfolder 'Ungelesen' is ' (and\n  \n     (match-all (not (system-flag  \"Seen\")))\n    \n  )\n'


This is with evo 2.25.1.
Comment 27 Srinivasa Ragavan 2008-11-05 15:47:21 UTC
Gotz, the experssion is exactly the same as what I have fixed. Its talking longer than this bug deserves. Gotz, can we meet up on irc, and I need 15 mins of your to exactly find your setup.. Sorry for the inconvenience.
Comment 28 Srinivasa Ragavan 2008-11-07 04:43:00 UTC
This patch is commited to stable/trunk
Comment 29 Götz Waschk 2008-11-13 10:08:37 UTC
To #27: not possible, please communicate over bugzilla.
Comment 30 Srinivasa Ragavan 2008-11-18 04:27:42 UTC
Ok. Just another try.

export CAMEL_DEBUG=vfolderexp

evolution

Get the console log of 
Expression for vfolder 'Ungelesen' is ' (and\n  \n     (match-all (not
(system-flag  \"Seen\")))\n    \n  )\n'



Now, copy what ever expression is with in the single quotes for your folder 'Ungelesen', exact-including spaces and 

export CAMEL_VFOLDER_UNREAD_EXP='that value'

evolution.

Now see how your unread vfolder behaves?

This is a part of the hack I added, incase, some one has a different unread vfolder query, they can set it through this value. But this must make the unread vfolder work well. But I still don't see, how you see read mails in that folder.
This is a unique problem :(
Comment 31 Götz Waschk 2008-12-03 10:06:41 UTC
Created attachment 123862 [details]
screenshot

As you can see, this still happens. I have then deleted and recreated the vfolder and the new folder works for now.
Comment 32 Srinivasa Ragavan 2008-12-03 10:43:35 UTC
Gotz, the counts are wrong. But any other issue in the screenshot?
Comment 33 Götz Waschk 2008-12-03 11:21:38 UTC
The other issues are visible on my other machine.
Comment 34 Srinivasa Ragavan 2009-01-29 05:49:44 UTC
Gotz: Did you try 2.24.3? I had fixed many issues in that. It would be nice if you could give a try and update your problems. Thanks.
Comment 35 Götz Waschk 2009-01-29 08:41:00 UTC
I cannot reproduce it at the moment.
Comment 36 Srinivasa Ragavan 2009-01-29 16:49:07 UTC
Please re-open if you get it again. Thanks.