masqmail
view tests/relay-to-localhost-mta/test.tpl @ 276:1abc1faeb45d
for -t cmdline args are now added to the rcpt list instead of substracted
Please read the diff and the section about -t in man/masqmail.8.
Masqmail's behavior had been like the one of exim/smail, now it's
similar to postfix.
Masqmail does it now the most simple way, regarding the code.
Also, addr args are always recipients, -t does not change their meaning.
-t makes the addrs from rcpt hdrs, rcpt addrs too.
It would have been logical too, to ignore the cmdline args,
in the sense of ``headers *instead of* args'' but none of the
popular MTAs does it that way and it would have been a bit more
complicated in the code.
Anyway, this is a corner-case that should better be avoided completely.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Fri, 03 Dec 2010 21:05:34 -0300 |
parents | 49ca781e1503 |
children | 60bb2dbe2866 |
line source
1 #!/bin/sh
3 # path to the masqmail executable
4 mm_bin=../../src/masqmail
6 hfrom="\"Fritz Meier\" <`logname`@RECV_HOST>"
7 hto="$hfrom"
8 to=`logname`@RECV_HOST
9 hsubject="Masqmail test: relay-to-localhost-mta"
12 # Testing with rcpt on cmd line
13 # (dot does end)
14 #
15 # the command to be run:
16 cmd="$mm_bin -C ./test.conf $to"
18 $cmd <<EOF
19 From: $hfrom
20 To: $hto
21 Subject: $hsubject
23 Hallo Fritz!
24 ..
25 there is a dot above (Yes, one and not two).
27 command was: $cmd
29 Fritz
30 .
32 EOF
35 # Testing with rcpt on cmd line with -oi option
36 # (dot does not end)
37 #
38 # the command to be run:
39 cmd="$mm_bin -C ./test.conf -oi $to"
41 $cmd <<EOF
42 From: $hfrom
43 To: $hto
44 Subject: $hsubject
46 Hallo Fritz!
47 .
48 there is a dot above.
50 command was: $cmd
52 Fritz
54 EOF
57 # Testing with rcpt read from headers (-t option)
58 # (dot does end)
59 #
60 # the command to be run:
61 cmd="$mm_bin -C ./test.conf -t"
63 $cmd <<EOF
64 From: $hfrom
65 To: $hto
66 Subject: $hsubject
68 Hallo Fritz!
69 ..
70 there is a dot above.
72 command was: $cmd
74 Fritz
75 .
77 EOF