]> granicus.if.org Git - neomutt/commitdiff
Notmuch: Change default window to be open ended
authorAustin Ray <austin@austinray.io>
Wed, 22 Aug 2018 03:06:17 +0000 (23:06 -0400)
committerRichard Russon <rich@flatcap.org>
Wed, 3 Oct 2018 09:42:39 +0000 (10:42 +0100)
Change the default query window to be open ended, allowing for mail
from the future to appear in a query. This may occur if the sender's
time settings are improperly configured.

Signed-off-by: Austin Ray <austin@austinray.io>
notmuch/mutt_notmuch.c

index dbf6990667dbd316a150c5aa6a671369b635d6c1..30d50f0bdd869b33bac65b1d3ed7a092cdfee12e 100644 (file)
@@ -425,7 +425,9 @@ static bool windowed_query_from_query(const char *query, char *buf, size_t bufle
 
   if (end == 0)
   {
-    snprintf(buf, buflen, "date:%d%s..now and %s", beg, NmQueryWindowTimebase,
+    // Open-ended date allows mail from the future.
+    // This may occur is the sender's time settings are off.
+    snprintf(buf, buflen, "date:%d%s.. and %s", beg, NmQueryWindowTimebase,
              NmQueryWindowCurrentSearch);
   }
   else