3 test_description=Emacs\'\ forgetfulness
7 # RFC822 imposes a 998 character limit per line.
9 x=$x$x$x$x$x$x$x$x$x$x # 100
10 x=$x$x$x$x$x$x$x$x$x # 900
12 # If setting this ``too high'' (TODO: yet to be determined), Emacs will crash
13 # with a segmentation fault.
15 for i in $(seq 1 $n); do
16 # Roughly 2 KiB per message. That is, we need two messages in order to
17 # exceed the typical size of the pipe buffer (4 KiB on commodity systems).
18 generate_message [subject]=$i-$x [from]=$i-$x@x.x
20 # With 20 messages à 2 KiB, we have about 10 full pipe buffers, which should be
21 # enough to trigger the erroneous behavior.
23 notmuch new > /dev/null
25 test_begin_subtest 'Search for all messages'
30 -e 's%^thread:[0-9a-f]*\ %%' \
32 echo 'End of search results.'; \
35 '(notmuch-search "*") (notmuch-test-wait) (message (buffer-string))'))
36 test_expect_equal "$output" ''