summaryrefslogtreecommitdiffstats
path: root/test5.hs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-04-30 15:25:09 +0200
committertv <tv@krebsco.de>2017-04-30 15:46:32 +0200
commitf5eb629cc93920cec9b48d13c5600cf64c8e5b85 (patch)
tree4bd0778e96f6b35c58ad1669634b1f1697f646d9 /test5.hs
parent5f78ec96b34fe96b933d079776a24f2b23e767a3 (diff)
test5 initState: limit search to 100
Diffstat (limited to 'test5.hs')
-rw-r--r--test5.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/test5.hs b/test5.hs
index 4e7cccb..561f2d6 100644
--- a/test5.hs
+++ b/test5.hs
@@ -83,7 +83,11 @@ data State = State
initState :: String -> IO State
initState query = do
- r_ <- either error id <$> Notmuch.search [query]
+ r_ <- either error id <$> Notmuch.search
+ [ "--offset=0"
+ , "--limit=100"
+ , query
+ ]
return State
{ cursor = Z.fromTree $ fromSearchResults query r_