Commit f6f728bc f6f728bc3b2211db02a38750fbcc61b880e414b4 by Sergey Poznyakoff

Test mail and reply commands.

1 parent eca1572b
1 # -*- tcl -*-
2 # This file is part of Mailutils testsuite.
3 # Copyright (C) 2002, Free Software Foundation
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software Foundation,
17 # Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 mail_start "--file=%mbox1"
20
21 mail_command "set sendmail=\"sendmail:$top_builddir/examples/mta\""
22 mail_command "setenv MTA_DIAG=\"$MU_FOLDER_DIR/mta.diag\""
23
24 mail_test -noprompt "reply 1" \
25 "To: <foobar@nonexistent.net>,<bar@dontmailme.org>"\
26 "Subject: Re: Jabberwocky"\
27 ""
28
29 mail_test -noprompt "~m"\
30 "Interpolating: 1"\
31 "(continue)"
32
33 mail_test "." ""
34
35 mu_test_file "$MU_FOLDER_DIR/mta.diag" \
36 -re "ENVELOPE FROM: \[^\r\n\]*"\
37 "ENVELOPE TO: <foobar@nonexistent.net>,<bar@dontmailme.org>"\
38 " 0: To: <foobar@nonexistent.net>,<bar@dontmailme.org>"\
39 " 1: Subject: Re: Jabberwocky"\
40 " 2: X-Mailer: mail (GNU Mailutils $MU_TOOL_VERSION)"\
41 " 3: "\
42 " 4: > Received: (from foobar@nonexistent.net)"\
43 " 5: by nonexistent.net id fBSKI8N04906"\
44 " 6: for bar@dontmailme.org; Fri, 28 Dec 2001 22:18:08 +0200"\
45 " 7: > Date: Fri, 28 Dec 2001 22:18:08 +0200"\
46 " 8: > From: Foo Bar <foobar@nonexistent.net>"\
47 " 9: > Message-Id: <200112282018.fBSKI8N04906@nonexistent.net>"\
48 " 10: > To: Bar <bar@dontmailme.org>"\
49 " 11: > Subject: Jabberwocky"\
50 " 12: "\
51 " 13: > `Twas brillig, and the slithy toves"\
52 " 14: > Did gyre and gimble in the wabe;"\
53 " 15: > All mimsy were the borogoves,"\
54 " 16: > And the mome raths outgrabe."\
55 " 17: > "\
56 " 18: > `Beware the Jabberwock, my son!"\
57 " 19: > The jaws that bite, the claws that catch!"\
58 " 20: > Beware the Jujub bird, and shun"\
59 " 21: > The frumious Bandersnatch!'"\
60 " 22: > "\
61 " 23: > He took his vorpal sword in hand:"\
62 " 24: > Long time the manxome foe he sought --"\
63 " 25: > So rested he by the Tumtum gree,"\
64 " 26: > And stood awhile in thought."\
65 " 27: > "\
66 " 28: > And as in uffish thought he stood,"\
67 " 29: > The Jabberwock, with eyes of flame,"\
68 " 30: > Came whiffling through the tulgey wook,"\
69 " 31: > And burbled as it came!"\
70 " 32: > "\
71 " 33: > One, two! One, two! And through and through"\
72 " 34: > The vorpal blade went snicker-snack!"\
73 " 35: > He left it dead, and with its head"\
74 " 36: > He went galumphing back."\
75 " 37: > "\
76 " 38: > `And has thou slain the Jabberwock?"\
77 " 39: > Come to my arms, my beamish boy!"\
78 " 40: > O frabjous day! Calloh! Callay!"\
79 " 41: > He chortled in his joy."\
80 " 42: > "\
81 " 43: > `Twas brillig, and the slithy toves"\
82 " 44: > Did gyre and gimble in the wabe;"\
83 " 45: > All mimsy were the borogoves,"\
84 " 46: > And the mome raths outgrabe."\
85 " 47: > "\
86 " 48: "\
87 "END OF MESSAGE"
88
89 # End of send.exp