Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
66ae8a92
...
66ae8a923930ba05df824bf58bbd766c7da3639b
authored
2002-08-23 07:01:03 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Updated to match new test mailbox.
1 parent
f79ab4e6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
194 additions
and
190 deletions
mail/testsuite/mail/tag.exp
mail/testsuite/mail/z.exp
pop3d/testsuite/pop3d/read.exp
mail/testsuite/mail/tag.exp
View file @
66ae8a9
...
...
@@ -20,79 +20,83 @@ mail_start "--file=%teaparty.mbox"
mail_command
"set readonly"
mail_test
"from 1,2,5-7 9"
\
">N 1 March Hare
Sun Jul 21 20:46 10/307
Invitation"
\
" N 2 Alice
Sun Jul 21 20:46 10/317
Re: Invitation"
\
" N 5 March Hare
Sun Jul 21 20:46 10/358
Re: Invitation"
\
" N 6 Alice
Sun Jul 21 20:46 11/373
Re: Invitation"
\
" N 7 March Hare
Sun Jul 21 20:46 10/321
Personal remark"
\
" N 9 March Hare
Sun Jul 21 20:46 10/350
Riddle (was Re: Personal "
">N 1 March Hare
Mon Jul 29 22:00 10/301
Invitation"
\
" N 2 Alice
Mon Jul 29 22:00 10/311
Re: Invitation"
\
" N 5 March Hare
Mon Jul 29 22:00 10/352
Re: Invitation"
\
" N 6 Alice
Mon Jul 29 22:00 11/367
Re: Invitation"
\
" N 7 March Hare
Mon Jul 29 22:00 10/315
Personal remark"
\
" N 9 March Hare
Mon Jul 29 22:00 10/344
Riddle (was Re: Personal "
mail_test
"from ^"
\
">N 1 March Hare
Sun Jul 21 20:46 10/307 Invitation"
">N 1 March Hare
Mon Jul 29 22:00 10/301 Invitation"
\
mail_test
"from
$
"
\
" N 95 Alice
Sun Jul 21 20:46 11/385
Thoughts"
" N 95 Alice
Mon Jul 29 22:01 11/379
Thoughts"
# FIXME: not yet functional
#mail_test "from hatter"
mail_test
"tag from:/dormouse/"
mail_test
"from :t"
\
" T 17 Dormouse
Sun Jul 21 20:46 12/448
Re: Be specific"
\
" T 31 Dormouse
Sun Jul 21 20:46 11/370
Re: Remark"
\
" T 49 Dormouse
Sun Jul 21 20:46 10/355
Re: Discussing Time"
\
" T 61 Dormouse
Sun Jul 21 20:46 11/388
Re: Request for a story"
\
" T 65 Dormouse
Sun Jul 21 20:46 12/477
Story (was Re: Request fo"
\
" T 67 Dormouse
Sun Jul 21 20:46 10/319
Re: Story"
\
" T 69 Dormouse
Sun Jul 21 20:46 10/321
Re: Story"
\
" T 77 Dormouse
Sun Jul 21 20:46 10/320
Re: Story"
\
" T 79 Dormouse
Sun Jul 21 20:46 11/364
Re: Story"
\
" T 81 Dormouse
Sun Jul 21 20:46 11/384
Re: Story"
\
" T 83 Dormouse
Sun Jul 21 20:46 10/306
Re: Story"
\
" T 88 Dormouse
Sun Jul 21 20:46 10/328
Re: Story"
\
" T 89 Dormouse
Sun Jul 21 20:46 11/396
Re: Story"
\
" T 91 Dormouse
Sun Jul 21 20:46 10/306
Re: Story"
\
" T 92 Dormouse
Sun Jul 21 20:46 13/493
Re: Story"
" T 17 Dormouse
Mon Jul 29 22:00 12/442
Re: Be specific"
\
" T 31 Dormouse
Mon Jul 29 22:00 11/364
Re: Remark"
\
" T 49 Dormouse
Mon Jul 29 22:00 10/349
Re: Discussing Time"
\
" T 61 Dormouse
Mon Jul 29 22:01 11/382
Re: Request for a story"
\
" T 65 Dormouse
Mon Jul 29 22:01 12/471
Story (was Re: Request fo"
\
" T 67 Dormouse
Mon Jul 29 22:01 10/313
Re: Story"
\
" T 69 Dormouse
Mon Jul 29 22:01 10/315
Re: Story"
\
" T 77 Dormouse
Mon Jul 29 22:01 10/314
Re: Story"
\
" T 79 Dormouse
Mon Jul 29 22:01 11/358
Re: Story"
\
" T 81 Dormouse
Mon Jul 29 22:01 11/378
Re: Story"
\
" T 83 Dormouse
Mon Jul 29 22:01 10/300
Re: Story"
\
" T 88 Dormouse
Mon Jul 29 22:01 10/322
Re: Story"
\
" T 89 Dormouse
Mon Jul 29 22:01 11/390
Re: Story"
\
" T 91 Dormouse
Mon Jul 29 22:01 10/300
Re: Story"
\
" T 92 Dormouse
Mon Jul 29 22:01 13/487
Re: Story"
mail_command
"untag :t"
mail_test
"from :t"
# FIXME: This should be a single command, actually. But readline's echo
# seems to split so that mail_command fails.
mail_command
"tag subject:/invitation/ subject:/riddle/ subject:/time/"
mail_command
"tag subject:/watch/ subject:/specific/ subject:/guess/"
# seems to split it so that mail_command fails.
mail_command
"tag subject:/invitation/"
mail_command
"tag subject:/riddle/"
mail_command
"tag subject:/time/"
mail_command
"tag subject:/watch/"
mail_command
"tag subject:/specific/"
mail_command
"tag subject:/guess/"
mail_command
"tag subject:/story/"
mail_test
"from :T"
\
" N 7 March Hare
Sun Jul 21 20:46 10/321
Personal remark"
\
" N 8 Alice
Sun Jul 21 20:46 10/364
Re: Personal remark"
\
" N 30 Hatter
Sun Jul 21 20:46 10/333
Remark"
\
" N 31 Dormouse
Sun Jul 21 20:46 11/370
Re: Remark"
\
" N 71 March Hare
Sun Jul 21 20:46 10/307
Remark"
\
" N 72 Alice
Sun Jul 21 20:46 11/336
Re: Remark"
\
" N 73 Hatter
Sun Jul 21 20:46 11/364
Re: Remark"
\
" N 74 Alice
Sun Jul 21 20:46 10/323
Personal remark"
\
" N 75 Hatter
Sun Jul 21 20:46 10/336
Re: Personal remark"
\
" N 84 Hatter
Sun Jul 21 20:46 11/357
Let's move"
\
" N 94 Hatter
Sun Jul 21 20:46 10/317
Rude remark"
\
" N 95 Alice
Sun Jul 21 20:46 11/385
Thoughts"
" N 7 March Hare
Mon Jul 29 22:00 10/315
Personal remark"
\
" N 8 Alice
Mon Jul 29 22:00 10/358
Re: Personal remark"
\
" N 30 Hatter
Mon Jul 29 22:00 10/327
Remark"
\
" N 31 Dormouse
Mon Jul 29 22:00 11/364
Re: Remark"
\
" N 71 March Hare
Mon Jul 29 22:01 10/301
Remark"
\
" N 72 Alice
Mon Jul 29 22:01 11/330
Re: Remark"
\
" N 73 Hatter
Mon Jul 29 22:01 11/358
Re: Remark"
\
" N 74 Alice
Mon Jul 29 22:01 10/317
Personal remark"
\
" N 75 Hatter
Mon Jul 29 22:01 10/330
Re: Personal remark"
\
" N 84 Hatter
Mon Jul 29 22:01 11/351
Let's move"
\
" N 94 Hatter
Mon Jul 29 22:01 10/311
Rude remark"
\
" N 95 Alice
Mon Jul 29 22:01 11/379
Thoughts"
mail_command
"untag :t"
#FIXME: should be 'mail_command "print 2"'
mail_test
"print 2"
\
"Received: (from alice@wonder.land)"
\
" by wonder.land id 3
d3b1d91
"
\
" for hare@wonder.land;
Sun, 21 Jul 2002 23:46:09 EEST
"
\
"Date:
Sun, 21 Jul 2002 23:46:09 EEST
"
\
"Received: (from alice@wonder.land)
"
\
" by wonder.land id 3
302
"
\
" for hare@wonder.land;
Mon, 29 Jul 2002 22:00:07 +0100
"
\
"Date:
Mon, 29 Jul 2002 22:00:02 +0100
"
\
"From: Alice <alice@wonder.land>"
\
"Message-Id: <2002072
12346.3d3b1d91
@wonder.land>"
\
"Message-Id: <2002072
92200.3302
@wonder.land>"
\
"To: March Hare <hare@wonder.land>"
\
"Subject: Re: Invitation"
\
""
\
"I don't see any wine"
mail_test
"from :r"
\
">R 2 Alice
Sun Jul 21 20:46 10/317
Re: Invitation"
">R 2 Alice
Mon Jul 29 22:00 10/311
Re: Invitation"
# End of tag.exp
...
...
mail/testsuite/mail/z.exp
View file @
66ae8a9
This diff is collapsed.
Click to expand it.
pop3d/testsuite/pop3d/read.exp
View file @
66ae8a9
...
...
@@ -20,107 +20,107 @@ pop3d_start
pop3d_auth
"user!passwd"
"guessme"
## Test STAT command
pop3d_test
"STAT"
"+OK 95 3
5014
"
pop3d_test
"STAT"
"+OK 95 3
4469
"
## Test LIST command. This will be used twice.
proc
test_list
{}
{
pop3d_test
"LIST"
\
"+OK"
\
"1 31
7
"
\
"2 327
"
\
"3 322
"
\
"4 351
"
\
"5 368
"
\
"6 384
"
\
"7 331
"
\
"8 374
"
\
"9 360
"
\
"10 32
9
"
\
"11 3
64
"
\
"12 3
13
"
\
"13 3
54
"
\
"14 3
85
"
\
"15 42
7
"
\
"16
403
"
\
"17 4
60
"
\
"18 34
6
"
\
"19 32
6
"
\
"20 3
13
"
\
"21 3
63
"
\
"22 32
7
"
\
"23
403
"
\
"24 33
8
"
\
"25 4
21
"
\
"26 3
64
"
\
"27 39
6
"
\
"28 3
40
"
\
"29 33
6
"
\
"30 3
43
"
\
"31 3
81
"
\
"32 3
35
"
\
"33 33
9
"
\
"34 3
31
"
\
"35 30
8
"
\
"36 4
23
"
\
"37 38
9
"
\
"38 33
8
"
\
"39 3
73
"
\
"40 3
75
"
\
"41 66
8
"
\
"42 34
7
"
\
"43 3
94
"
\
"44 39
6
"
\
"45 33
9
"
\
"46 5
54
"
\
"47 3
40
"
\
"48 4
30
"
\
"49 3
65
"
\
"50 4
43
"
\
"51 3
34
"
\
"52 38
9
"
\
"53 3
82
"
\
"54 3
95
"
\
"55 3
42
"
\
"56 3
42
"
\
"57 35
8
"
\
"58 4
44
"
\
"59 3
43
"
\
"60
389
"
\
"61 39
9
"
\
"62 3
41
"
\
"63 33
7
"
\
"64 3
92
"
\
"65 48
9
"
\
"66 3
30
"
\
"67 32
9
"
\
"68 36
8
"
\
"69 3
31
"
\
"70 3
54
"
\
"71 31
7
"
\
"72 34
7
"
\
"73 3
75
"
\
"74 3
33
"
\
"75 34
6
"
\
"76 3
51
"
\
"77 3
30
"
\
"78 3
30
"
\
"79 3
75
"
\
"80 3
81
"
\
"81 3
95
"
\
"82 32
7
"
\
"83 31
6
"
\
"84 36
8
"
\
"85 3
71
"
\
"86 41
9
"
\
"87 3
33
"
\
"88 33
8
"
\
"89 40
7
"
\
"90 3
22
"
\
"91 31
6
"
\
"92 50
6
"
\
"93 34
7
"
\
"94 32
7
"
\
"95 39
6
"
\
"1 31
1
"
\
"2 321
"
\
"3 316
"
\
"4 345
"
\
"5 362
"
\
"6 378
"
\
"7 325
"
\
"8 368
"
\
"9 354
"
\
"10 32
3
"
\
"11 3
58
"
\
"12 3
07
"
\
"13 3
48
"
\
"14 3
79
"
\
"15 42
1
"
\
"16
397
"
\
"17 4
54
"
\
"18 34
0
"
\
"19 32
0
"
\
"20 3
07
"
\
"21 3
57
"
\
"22 32
1
"
\
"23
397
"
\
"24 33
2
"
\
"25 4
15
"
\
"26 3
58
"
\
"27 39
0
"
\
"28 3
34
"
\
"29 33
0
"
\
"30 3
37
"
\
"31 3
75
"
\
"32 3
29
"
\
"33 33
3
"
\
"34 3
25
"
\
"35 30
2
"
\
"36 4
17
"
\
"37 38
3
"
\
"38 33
2
"
\
"39 3
67
"
\
"40 3
69
"
\
"41 66
2
"
\
"42 34
1
"
\
"43 3
88
"
\
"44 39
0
"
\
"45 33
3
"
\
"46 5
48
"
\
"47 3
34
"
\
"48 4
24
"
\
"49 3
59
"
\
"50 4
37
"
\
"51 3
28
"
\
"52 38
3
"
\
"53 3
76
"
\
"54 3
89
"
\
"55 3
36
"
\
"56 3
36
"
\
"57 35
2
"
\
"58 4
38
"
\
"59 3
37
"
\
"60
408
"
\
"61 39
3
"
\
"62 3
35
"
\
"63 33
1
"
\
"64 3
86
"
\
"65 48
3
"
\
"66 3
24
"
\
"67 32
3
"
\
"68 36
2
"
\
"69 3
25
"
\
"70 3
48
"
\
"71 31
1
"
\
"72 34
1
"
\
"73 3
69
"
\
"74 3
27
"
\
"75 34
0
"
\
"76 3
45
"
\
"77 3
24
"
\
"78 3
24
"
\
"79 3
69
"
\
"80 3
75
"
\
"81 3
89
"
\
"82 32
1
"
\
"83 31
0
"
\
"84 36
2
"
\
"85 3
65
"
\
"86 41
3
"
\
"87 3
27
"
\
"88 33
2
"
\
"89 40
1
"
\
"90 3
16
"
\
"91 31
0
"
\
"92 50
0
"
\
"93 34
1
"
\
"94 32
1
"
\
"95 39
0
"
\
"."
}
...
...
@@ -130,16 +130,16 @@ test_list
## Test RETRY on an existing message
pop3d_test
"RETR 1"
\
"+OK"
\
"Received: (from hare@wonder.land)
"
\
" by wonder.land id 3
d3b1d91"
\
" for alice@wonder.land;
Sun, 21 Jul 2002 23:46:09 EEST"
\
"Date:
Sun, 21 Jul 2002 23:46:09 EEST"
\
"From: March Hare <hare@wonder.land>"
\
"Message-Id: <2002072
12346.3d3b1d91@wonder.land>"
\
"To: Alice <alice@wonder.land>"
\
"Subject: Invitation"
\
""
\
"Have some wine"
\
"Received: (from hare@wonder.land)
"
\
" by wonder.land id 3
301"
\
" for alice@wonder.land;
Mon, 29 Jul 2002 22:00:06 +0100"
\
"Date:
Mon, 29 Jul 2002 22:00:01 +0100"
\
"From: March Hare <hare@wonder.land>"
\
"Message-Id: <2002072
92200.3301@wonder.land>"
\
"To: Alice <alice@wonder.land>"
\
"Subject: Invitation"
\
""
\
"Have some wine"
\
"."
## Test TOP command
...
...
@@ -149,14 +149,14 @@ pop3d_test "TOP 48" \
pop3d_test
"TOP 48 2"
\
"+OK"
\
"Received: (from hatter@wonder.land)
"
\
" by wonder.land id 3
d3b1d95"
\
" for alice@wonder.land;
Sun, 21 Jul 2002 23:46:13 EEST"
\
"Date:
Sun, 21 Jul 2002 23:46:13 EEST"
\
"From: Hatter <hatter@wonder.land>"
\
"Message-Id: <2002072
12346.3d3b1d95@wonder.land>"
\
"To: Alice <alice@wonder.land>"
\
"Subject: Re: Discussing Time"
\
"Received: (from hatter@wonder.land)
"
\
" by wonder.land id 3
348"
\
" for alice@wonder.land;
Mon, 29 Jul 2002 22:00:53 +0100"
\
"Date:
Mon, 29 Jul 2002 22:00:48 +0100"
\
"From: Hatter <hatter@wonder.land>"
\
"Message-Id: <2002072
92200.3348@wonder.land>"
\
"To: Alice <alice@wonder.land>"
\
"Subject: Re: Discussing Time"
\
""
\
"It goes on, you know in this way:--"
\
""
\
...
...
@@ -164,14 +164,14 @@ pop3d_test "TOP 48 2" \
pop3d_test
"TOP 48 3"
\
"+OK"
\
"Received: (from hatter@wonder.land)
"
\
" by wonder.land id 3
d3b1d95"
\
" for alice@wonder.land;
Sun, 21 Jul 2002 23:46:13 EEST"
\
"Date:
Sun, 21 Jul 2002 23:46:13 EEST"
\
"From: Hatter <hatter@wonder.land>"
\
"Message-Id: <2002072
12346.3d3b1d95@wonder.land>"
\
"To: Alice <alice@wonder.land>"
\
"Subject: Re: Discussing Time"
\
"Received: (from hatter@wonder.land)
"
\
" by wonder.land id 3
348"
\
" for alice@wonder.land;
Mon, 29 Jul 2002 22:00:53 +0100"
\
"Date:
Mon, 29 Jul 2002 22:00:48 +0100"
\
"From: Hatter <hatter@wonder.land>"
\
"Message-Id: <2002072
92200.3348@wonder.land>"
\
"To: Alice <alice@wonder.land>"
\
"Subject: Re: Discussing Time"
\
""
\
"It goes on, you know in this way:--"
\
""
\
...
...
@@ -181,14 +181,14 @@ pop3d_test "TOP 48 3" \
pop3d_test
"TOP 48 4"
\
"+OK"
\
"Received: (from hatter@wonder.land)
"
\
" by wonder.land id 3
d3b1d95"
\
" for alice@wonder.land;
Sun, 21 Jul 2002 23:46:13 EEST"
\
"Date:
Sun, 21 Jul 2002 23:46:13 EEST"
\
"From: Hatter <hatter@wonder.land>"
\
"Message-Id: <2002072
12346.3d3b1d95@wonder.land>"
\
"To: Alice <alice@wonder.land>"
\
"Subject: Re: Discussing Time"
\
"Received: (from hatter@wonder.land)
"
\
" by wonder.land id 3
348"
\
" for alice@wonder.land;
Mon, 29 Jul 2002 22:00:53 +0100"
\
"Date:
Mon, 29 Jul 2002 22:00:48 +0100"
\
"From: Hatter <hatter@wonder.land>"
\
"Message-Id: <2002072
92200.3348@wonder.land>"
\
"To: Alice <alice@wonder.land>"
\
"Subject: Re: Discussing Time"
\
""
\
"It goes on, you know in this way:--"
\
""
\
...
...
@@ -198,14 +198,14 @@ pop3d_test "TOP 48 4" \
pop3d_test
"TOP 48 1000"
\
"+OK"
\
"Received: (from hatter@wonder.land)
"
\
" by wonder.land id 3
d3b1d95"
\
" for alice@wonder.land;
Sun, 21 Jul 2002 23:46:13 EEST"
\
"Date:
Sun, 21 Jul 2002 23:46:13 EEST"
\
"From: Hatter <hatter@wonder.land>"
\
"Message-Id: <2002072
12346.3d3b1d95@wonder.land>"
\
"To: Alice <alice@wonder.land>"
\
"Subject: Re: Discussing Time"
\
"Received: (from hatter@wonder.land)
"
\
" by wonder.land id 3
348"
\
" for alice@wonder.land;
Mon, 29 Jul 2002 22:00:53 +0100"
\
"Date:
Mon, 29 Jul 2002 22:00:48 +0100"
\
"From: Hatter <hatter@wonder.land>"
\
"Message-Id: <2002072
92200.3348@wonder.land>"
\
"To: Alice <alice@wonder.land>"
\
"Subject: Re: Discussing Time"
\
""
\
"It goes on, you know in this way:--"
\
""
\
...
...
@@ -225,14 +225,14 @@ pop3d_test "RSET" "+OK"
pop3d_test
"RETR 2"
\
"+OK"
\
"Received: (from alice@wonder.land)
"
\
" by wonder.land id 3
d3b1d91"
\
" for hare@wonder.land;
Sun, 21 Jul 2002 23:46:09 EEST"
\
"Date:
Sun, 21 Jul 2002 23:46:09 EEST"
\
"From: Alice <alice@wonder.land>"
\
"Message-Id: <2002072
12346.3d3b1d91@wonder.land>"
\
"To: March Hare <hare@wonder.land>"
\
"Subject: Re: Invitation"
\
"Received: (from alice@wonder.land)
"
\
" by wonder.land id 3
302"
\
" for hare@wonder.land;
Mon, 29 Jul 2002 22:00:07 +0100"
\
"Date:
Mon, 29 Jul 2002 22:00:02 +0100"
\
"From: Alice <alice@wonder.land>"
\
"Message-Id: <2002072
92200.3302@wonder.land>"
\
"To: March Hare <hare@wonder.land>"
\
"Subject: Re: Invitation"
\
""
\
"I don't see any wine"
\
"."
...
...
Please
register
or
sign in
to post a comment