aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-shell-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-07-10 07:53:52 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-07-10 08:06:00 +0800
commitc14ebe73581fba5afa527c188507d1d50b2ebdd7 (patch)
tree7dce19d91658fe4a44b580e3ece8889dcfec04f1 /modules/mail/e-mail-shell-view.c
parent55098b935c6e860424419dfd5f51a822dd8b418b (diff)
downloadgsoc2013-evolution-c14ebe73581fba5afa527c188507d1d50b2ebdd7.tar
gsoc2013-evolution-c14ebe73581fba5afa527c188507d1d50b2ebdd7.tar.gz
gsoc2013-evolution-c14ebe73581fba5afa527c188507d1d50b2ebdd7.tar.bz2
gsoc2013-evolution-c14ebe73581fba5afa527c188507d1d50b2ebdd7.tar.lz
gsoc2013-evolution-c14ebe73581fba5afa527c188507d1d50b2ebdd7.tar.xz
gsoc2013-evolution-c14ebe73581fba5afa527c188507d1d50b2ebdd7.tar.zst
gsoc2013-evolution-c14ebe73581fba5afa527c188507d1d50b2ebdd7.zip
Bug 679649 - Remove "Recent Messages" from Quick Search Bar
The story on this is a question [1] was recently posed to the mailing list about what's the different between "Recent Messages" and "Last 5 Days' Messages" as listed in the Show: combo box, and even I could not answer before looking up the query expression for "Recent Messages" in the source code (messages received in the past 24 hours, it turns out). I can't defend why we need both options, and "Last 5 Days' Messages" is less ambiguous and overlaps the results for "Recent Messages", so "Last 5 Days' Messages" seems sufficient to me. There are numerous ways to re-create the "Recent Messages" query if it's still desired: saved search, search folder, or just sort messages by date received. [1] https://mail.gnome.org/archives/evolution-list/2012-July/msg00044.html
Diffstat (limited to 'modules/mail/e-mail-shell-view.c')
-rw-r--r--modules/mail/e-mail-shell-view.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/modules/mail/e-mail-shell-view.c b/modules/mail/e-mail-shell-view.c
index ad85799fac..1db444e936 100644
--- a/modules/mail/e-mail-shell-view.c
+++ b/modules/mail/e-mail-shell-view.c
@@ -450,23 +450,6 @@ filter:
query = temp;
break;
- case MAIL_FILTER_RECENT_MESSAGES:
- if (em_utils_folder_is_sent (registry, folder))
- temp = g_strdup_printf (
- "(and %s (match-all "
- "(> (get-sent-date) "
- "(- (get-current-date) 86400))))",
- query);
- else
- temp = g_strdup_printf (
- "(and %s (match-all "
- "(> (get-received-date) "
- "(- (get-current-date) 86400))))",
- query);
- g_free (query);
- query = temp;
- break;
-
case MAIL_FILTER_LAST_5_DAYS_MESSAGES:
if (em_utils_folder_is_sent (registry, folder))
temp = g_strdup_printf (