Mercurial > masqmail
annotate tests/localhost-stdin/test @ 368:b35c17fcf69d
Added cast to avoid compiler warning.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 20 Oct 2011 10:22:40 +0200 (2011-10-20) |
parents | 60bb2dbe2866 |
children |
rev | line source |
---|---|
64 | 1 #!/bin/sh |
0 | 2 |
64 | 3 # path to the masqmail executable |
63 | 4 mm_bin=../../src/masqmail |
0 | 5 |
64 | 6 |
340
60bb2dbe2866
In the tests: replaced logname(1) with $LOGNAME
markus schnalke <meillo@marmaro.de>
parents:
64
diff
changeset
|
7 hfrom="\"Fritz Meier\" <$LOGNAME@localhost>" |
0 | 8 hto=$hfrom |
340
60bb2dbe2866
In the tests: replaced logname(1) with $LOGNAME
markus schnalke <meillo@marmaro.de>
parents:
64
diff
changeset
|
9 to=$LOGNAME@localhost |
64 | 10 hsubject="Masqmail test: localhost-stdin" |
0 | 11 |
64 | 12 |
0 | 13 # Testing with rcpt on cmd line |
14 # (dot does end) | |
15 # | |
16 # the command to be run: | |
17 cmd="$mm_bin -C ./test.conf $to" | |
18 | |
19 $cmd <<EOF | |
20 From: $hfrom | |
21 To: $hto | |
22 Subject: $hsubject | |
23 | |
24 Hallo Fritz! | |
25 .. | |
26 there is a dot above (Yes, one and not two). | |
27 | |
28 command was: $cmd | |
29 | |
30 Fritz | |
31 . | |
32 | |
33 EOF | |
34 | |
64 | 35 |
0 | 36 # Testing with rcpt on cmd line with -oi option |
37 # (dot does not end) | |
38 # | |
39 # the command to be run: | |
40 cmd="$mm_bin -C ./test.conf -oi $to" | |
41 | |
42 $cmd <<EOF | |
43 From: $hfrom | |
44 To: $hto | |
45 Subject: $hsubject | |
46 | |
47 Hallo Fritz! | |
48 . | |
49 there is a dot above. | |
50 | |
51 command was: $cmd | |
52 | |
53 Fritz | |
54 | |
55 EOF | |
56 | |
64 | 57 |
0 | 58 # Testing with rcpt read from headers (-t option) |
59 # (dot does end) | |
60 # | |
61 # the command to be run: | |
62 cmd="$mm_bin -C ./test.conf -t" | |
63 | |
64 $cmd <<EOF | |
65 From: $hfrom | |
66 To: $hto | |
67 Subject: $hsubject | |
68 | |
69 Hallo Fritz! | |
70 .. | |
71 there is a dot above. | |
72 | |
73 command was: $cmd | |
74 | |
75 Fritz | |
76 . | |
77 | |
78 EOF |