Mercurial > masqmail
view tests/localhost-stdin/test @ 414:309935f59820
Minor refactoring and added a newline to the debug output.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Wed, 29 Feb 2012 14:23:16 +0100 |
parents | 60bb2dbe2866 |
children |
line wrap: on
line source
#!/bin/sh # path to the masqmail executable mm_bin=../../src/masqmail hfrom="\"Fritz Meier\" <$LOGNAME@localhost>" hto=$hfrom to=$LOGNAME@localhost hsubject="Masqmail test: localhost-stdin" # Testing with rcpt on cmd line # (dot does end) # # the command to be run: cmd="$mm_bin -C ./test.conf $to" $cmd <<EOF From: $hfrom To: $hto Subject: $hsubject Hallo Fritz! .. there is a dot above (Yes, one and not two). command was: $cmd Fritz . EOF # Testing with rcpt on cmd line with -oi option # (dot does not end) # # the command to be run: cmd="$mm_bin -C ./test.conf -oi $to" $cmd <<EOF From: $hfrom To: $hto Subject: $hsubject Hallo Fritz! . there is a dot above. command was: $cmd Fritz EOF # Testing with rcpt read from headers (-t option) # (dot does end) # # the command to be run: cmd="$mm_bin -C ./test.conf -t" $cmd <<EOF From: $hfrom To: $hto Subject: $hsubject Hallo Fritz! .. there is a dot above. command was: $cmd Fritz . EOF