Bug 2662 - "ag" quicksearch adds "1" to value
Summary: "ag" quicksearch adds "1" to value
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Filtering (show other bugs)
Version: 3.8.0
Hardware: PC All
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2012-05-16 06:28 UTC by Abhay S. Kushwaha
Modified: 2012-05-20 09:02 UTC (History)
0 users

See Also:


Attachments

Description Abhay S. Kushwaha 2012-05-16 06:28:53 UTC
When using the quicksearch filter on messages, if you use "ag" filter, it adds "1" to the value.

So if you want to search for messages that arrived more than 1 day ago, one has to use "ag 0" instead of "ag 1" which actually returns message that arrived more than 2 days ago.
Comment 1 users 2012-05-16 07:26:34 UTC
Changes related to this bug have been committed.
Please check latest CVS and update the bug accordingly.
You can also get the patch from:
http://www.claws-mail.org/tracker/

2012-05-16 [paul]	3.8.0cvs43

	* src/matcher.c
		fix bug 2662, '"ag" quicksearch adds "1" to value'
Comment 2 Colin Leroy 2012-05-16 07:36:03 UTC
From my point of view, this was correct. "ag 0" gives me mails received more than 24 hours ago. This is "more than zero day", aka "one day or more".

With the patch in place, in my opinion it's now working as "age 0" (age greater or equal).
Comment 3 Paul 2012-05-16 07:53:54 UTC
I guess it is a point of view: does zero days mean 23h 59m 59s or does it mean 0h 0d 0s
Comment 4 Paul 2012-05-16 07:58:08 UTC
the thing is that, as Abhay pointed out, "ag 1 & al 2" was returning nothing, so ag al were working forwards and backwards from different points (end and start) in a 24 hour period
Comment 5 Colin Leroy 2012-05-16 08:10:34 UTC
True... No hard feelings either way, for me.

Note You need to log in before you can comment on or make changes to this bug.