seq_read and seq_list also recognise msg which don't exist
[mmh] / test / tests / show / test-unseen-update
1 #!/bin/sh
2 ######################################################
3 #
4 # Test change of sequence during show
5 #
6 ######################################################
7
8 . "$MH_TEST_COMMON"
9
10 mark -sequence u -add -nozero 1-9
11 show 1-8 | mmh_test_fakepager &
12 pagerpid=$!
13
14 #because the fakepager sleeps 60 secounds the unseen sequence should be unchainged
15 #this can fail if the buffer of the pipe is big enouth to hold all messages
16 runandcheck "pick u" <<!
17 1
18 2
19 3
20 4
21 5
22 6
23 7
24 8
25 9
26 !
27
28 #add a new mail
29 rcvstore <<!
30 From: test
31 To: test
32
33 testmail
34 !
35 runandcheck "pick u" <<!
36 1
37 2
38 3
39 4
40 5
41 6
42 7
43 8
44 9
45 11
46 !
47 pkill -P $pagerpid
48 wait $pagerpid
49
50 runandcheck "pick u" <<!
51 9
52 11
53 !