summaryrefslogtreecommitdiff
path: root/mail/testsuite/mail/send.exp
blob: eb24fd576671838fffc3c8b0064146ac87c5fa04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# -*- tcl -*-
# This file is part of Mailutils testsuite.
# Copyright (C) 2002, Free Software Foundation
#  
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#   
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#  
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 

mail_start "--file=%mbox1"

mail_command "set sendmail=\"sendmail:$top_builddir/examples/mta\""
mail_command "setenv MTA_DIAG=\"$MU_FOLDER_DIR/mta.diag\""

mail_test -noprompt "reply 1" \
	"To: <foobar@nonexistent.net>,<bar@dontmailme.org>"\
	"Subject: Re: Jabberwocky"\
	""

mail_test -noprompt "~m"\
	"Interpolating: 1"\
	"(continue)"

mail_test "." 

mail_stop

mu_test_file "$MU_FOLDER_DIR/mta.diag" \
-re "ENVELOPE FROM: \[^\r\n\]*"\
"ENVELOPE TO: <foobar@nonexistent.net>,<bar@dontmailme.org>"\
"   0: To: <foobar@nonexistent.net>,<bar@dontmailme.org>"\
"   1: Subject: Re: Jabberwocky"\
"   2: In-Reply-To: Your message of Fri, 28 Dec 2001 22:18:08 +0200"\
"   3: \t<200112282018.fBSKI8N04906@nonexistent.net>"\
"   4: References: <200112282018.fBSKI8N04906@nonexistent.net>"\
"   5: X-Mailer: mail (GNU Mailutils $MU_TOOL_VERSION)"\
"   6: "\
"   7: > Received: (from foobar@nonexistent.net)"\
"   8: > 	by nonexistent.net id fBSKI8N04906"\
"   9: > 	for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\
"  10: > Date: Fri, 28 Dec 2001 22:18:08 +0200"\
"  11: > From: Foo Bar <foobar@nonexistent.net>"\
"  12: > Message-Id: <200112282018.fBSKI8N04906@nonexistent.net>"\
"  13: > To: Bar <bar@dontmailme.org>"\
"  14: > Subject: Jabberwocky"\
"  15: >"\
"  16: > `Twas brillig, and the slithy toves"\
"  17: > Did gyre and gimble in the wabe;"\
"  18: > All mimsy were the borogoves,"\
"  19: > And the mome raths outgrabe."\
"  20: > "\
"  21: > `Beware the Jabberwock, my son!"\
"  22: > The jaws that bite, the claws that catch!"\
"  23: > Beware the Jujub bird, and shun"\
"  24: > The frumious Bandersnatch!'"\
"  25: > "\
"  26: > He took his vorpal sword in hand:"\
"  27: > Long time the manxome foe he sought --"\
"  28: > So rested he by the Tumtum gree,"\
"  29: > And stood awhile in thought."\
"  30: > "\
"  31: > And as in uffish thought he stood,"\
"  32: > The Jabberwock, with eyes of flame,"\
"  33: > Came whiffling through the tulgey wook,"\
"  34: > And burbled as it came!"\
"  35: > "\
"  36: > One, two!  One, two!  And through and through"\
"  37: > The vorpal blade went snicker-snack!"\
"  38: > He left it dead, and with its head"\
"  39: > He went galumphing back."\
"  40: > "\
"  41: > `And has thou slain the Jabberwock?"\
"  42: > Come to my arms, my beamish boy!"\
"  43: > O frabjous day!  Calloh!  Callay!"\
"  44: > He chortled in his joy."\
"  45: > "\
"  46: > `Twas brillig, and the slithy toves"\
"  47: > Did gyre and gimble in the wabe;"\
"  48: > All mimsy were the borogoves,"\
"  49: > And the mome raths outgrabe."\
"  50: > "\
"  51: "\
"END OF MESSAGE"


# End of send.exp

Return to:

Send suggestions and report system problems to the System administrator.