[evolution] Compare only date when searching with Sent/Received dates
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Compare only date when searching with Sent/Received dates
- Date: Mon, 11 Jun 2018 16:40:17 +0000 (UTC)
commit fb1d7f484986c1d7636af64dedd2b41dac7803ac
Author: Milan Crha <mcrha redhat com>
Date: Mon Jun 11 18:40:36 2018 +0200
Compare only date when searching with Sent/Received dates
Related to https://gitlab.gnome.org/GNOME/evolution-data-server/issues/5
src/mail/filtertypes.xml.in | 16 ++++++++--------
src/mail/searchtypes.xml.in | 16 ++++++++--------
src/mail/vfoldertypes.xml.in | 16 ++++++++--------
3 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/src/mail/filtertypes.xml.in b/src/mail/filtertypes.xml.in
index 8cfec8899d..94678c9296 100644
--- a/src/mail/filtertypes.xml.in
+++ b/src/mail/filtertypes.xml.in
@@ -584,25 +584,25 @@
<option value="is">
<_title>is</_title>
<code>
- (match-all (= (get-sent-date) ${versus}))
+ (match-all (= (compare-date (get-sent-date) ${versus}) 0))
</code>
</option>
<option value="is-not">
<_title>is not</_title>
<code>
- (match-all (not (= (get-sent-date) ${versus})))
+ (match-all (not (= (compare-date (get-sent-date) ${versus}) 0)))
</code>
</option>
<option value="before">
<_title>is before</_title>
<code>
- (match-all (< (get-sent-date) ${versus}))
+ (match-all (< (compare-date (get-sent-date) ${versus}) 0))
</code>
</option>
<option value="after">
<_title>is after</_title>
<code>
- (match-all (> (get-sent-date) ${versus}))
+ (match-all (> (compare-date (get-sent-date) ${versus}) 0))
</code>
</option>
</input>
@@ -615,25 +615,25 @@
<option value="is">
<_title>is</_title>
<code>
- (match-all (= (get-received-date) ${versus}))
+ (match-all (= (compare-date (get-received-date) ${versus}) 0))
</code>
</option>
<option value="is-not">
<_title>is not</_title>
<code>
- (match-all (not (= (get-received-date) ${versus})))
+ (match-all (not (= (compare-date (get-received-date) ${versus}) 0)))
</code>
</option>
<option value="before">
<_title>is before</_title>
<code>
- (match-all (< (get-received-date) ${versus}))
+ (match-all (< (compare-date (get-received-date) ${versus}) 0))
</code>
</option>
<option value="after">
<_title>is after</_title>
<code>
- (match-all (> (get-received-date) ${versus}))
+ (match-all (> (compare-date (get-received-date) ${versus}) 0))
</code>
</option>
</input>
diff --git a/src/mail/searchtypes.xml.in b/src/mail/searchtypes.xml.in
index 14dca805e4..998f593761 100644
--- a/src/mail/searchtypes.xml.in
+++ b/src/mail/searchtypes.xml.in
@@ -669,25 +669,25 @@
<option value="is">
<_title>is</_title>
<code>
- (match-all (= (get-sent-date) ${versus}))
+ (match-all (= (compare-date (get-sent-date) ${versus}) 0))
</code>
</option>
<option value="is-not">
<_title>is not</_title>
<code>
- (match-all (not (= (get-sent-date) ${versus})))
+ (match-all (not (= (compare-date (get-sent-date) ${versus}) 0)))
</code>
</option>
<option value="before">
<_title>is before</_title>
<code>
- (match-all (< (get-sent-date) ${versus}))
+ (match-all (< (compare-date (get-sent-date) ${versus}) 0))
</code>
</option>
<option value="after">
<_title>is after</_title>
<code>
- (match-all (> (get-sent-date) ${versus}))
+ (match-all (> (compare-date (get-sent-date) ${versus}) 0))
</code>
</option>
</input>
@@ -700,25 +700,25 @@
<option value="is">
<_title>is</_title>
<code>
- (match-all (= (get-received-date) ${versus}))
+ (match-all (= (compare-date (get-received-date) ${versus}) 0))
</code>
</option>
<option value="is-not">
<_title>is not</_title>
<code>
- (match-all (not (= (get-received-date) ${versus})))
+ (match-all (not (= (compare-date (get-received-date) ${versus}) 0)))
</code>
</option>
<option value="before">
<_title>is before</_title>
<code>
- (match-all (< (get-received-date) ${versus}))
+ (match-all (< (compare-date (get-received-date) ${versus}) 0))
</code>
</option>
<option value="after">
<_title>is after</_title>
<code>
- (match-all (> (get-received-date) ${versus}))
+ (match-all (> (compare-date (get-received-date) ${versus}) 0))
</code>
</option>
</input>
diff --git a/src/mail/vfoldertypes.xml.in b/src/mail/vfoldertypes.xml.in
index 3b8b275a07..e3d7d0e49c 100644
--- a/src/mail/vfoldertypes.xml.in
+++ b/src/mail/vfoldertypes.xml.in
@@ -665,25 +665,25 @@
<option value="is">
<_title>is</_title>
<code>
- (match-all (= (get-sent-date) ${versus}))
+ (match-all (= (compare-date (get-sent-date) ${versus}) 0))
</code>
</option>
<option value="is-not">
<_title>is not</_title>
<code>
- (match-all (not (= (get-sent-date) ${versus})))
+ (match-all (not (= (compare-date (get-sent-date) ${versus}) 0)))
</code>
</option>
<option value="before">
<_title>is before</_title>
<code>
- (match-all (< (get-sent-date) ${versus}))
+ (match-all (< (compare-date (get-sent-date) ${versus}) 0))
</code>
</option>
<option value="after">
<_title>is after</_title>
<code>
- (match-all (> (get-sent-date) ${versus}))
+ (match-all (> (compare-date (get-sent-date) ${versus}) 0))
</code>
</option>
</input>
@@ -696,25 +696,25 @@
<option value="is">
<_title>is</_title>
<code>
- (match-all (= (get-received-date) ${versus}))
+ (match-all (= (compare-date (get-received-date) ${versus}) 0))
</code>
</option>
<option value="is-not">
<_title>is not</_title>
<code>
- (match-all (not (= (get-received-date) ${versus})))
+ (match-all (not (= (compare-date (get-received-date) ${versus}) 0)))
</code>
</option>
<option value="before">
<_title>is before</_title>
<code>
- (match-all (< (get-received-date) ${versus}))
+ (match-all (< (compare-date (get-received-date) ${versus}) 0))
</code>
</option>
<option value="after">
<_title>is after</_title>
<code>
- (match-all (> (get-received-date) ${versus}))
+ (match-all (> (compare-date (get-received-date) ${versus}) 0))
</code>
</option>
</input>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]