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 589495 - Search folder by Size (KB) counts bytes, not KB
Search folder by Size (KB) counts bytes, not KB
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.28.x (obsolete)
Other Linux
: Normal minor
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[filter] evolution[vfolders]
Depends on:
Blocks:
 
 
Reported: 2009-07-23 14:04 UTC by Pedro Villavicencio
Modified: 2011-05-26 09:12 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28


Attachments
eds patch (1.43 KB, patch)
2011-05-26 09:10 UTC, Milan Crha
committed Details | Review

Description Pedro Villavicencio 2009-07-23 14:04:39 UTC
this report has been filed here:

https://bugs.edge.launchpad.net/ubuntu/+source/evolution/+bug/385859

"* create a search folder
* criteria: greater than size (kb)
* enter 100
* save

The folder contains many messages < 100 KB

Change the value to 100.000 seems to work.

So it looks like it counts the bytes, not the kilobytes as stated in the text"

Thanks,
Comment 1 Matthew Barnes 2009-07-23 14:18:37 UTC
Probably a similar bug when filtering.  Tagging for both.
Comment 2 Milan Crha 2011-05-26 09:10:10 UTC
Created attachment 188641 [details] [review]
eds patch

for evolution-data-server;

Search folders work fine for me, but usual searches don't, because they use sexp to sql conversion which doesn't divide size by 1024, as the old filtering/searching code does. With this patch it produces correct SQL expressions with size value divided by 1024.
Comment 3 Milan Crha 2011-05-26 09:12:51 UTC
Created commit eab040b in eds master (3.1.2+)
Created commit b569a3f in eds gnome-3-0 (3.0.3+)