masqmail

diff tests/test.templ @ 0:08114f7dcc23

this is masqmail-0.2.21 from oliver kurth
author meillo@marmaro.de
date Fri, 26 Sep 2008 17:05:23 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tests/test.templ	Fri Sep 26 17:05:23 2008 +0200
     1.3 @@ -0,0 +1,81 @@
     1.4 +#! /bin/bash
     1.5 +
     1.6 +# should be run from within tests dir
     1.7 +# set if you move this:
     1.8 +mm_src_dir=../src
     1.9 +mm_bin=$mm_src_dir/masqmail
    1.10 +
    1.11 +#
    1.12 +hfrom="\"Fritz Meier\" <`logname`@RECV_HOST>"
    1.13 +hto=$hfrom
    1.14 +to=`logname`@RECV_HOST
    1.15 +hsubject="MasqMail stdin Test"
    1.16 +
    1.17 +#
    1.18 +# Testing with rcpt on cmd line
    1.19 +# (dot does end)
    1.20 +#
    1.21 +# the command to be run:
    1.22 +cmd="$mm_bin -C ./test.conf $to"
    1.23 +
    1.24 +$cmd <<EOF
    1.25 +From: $hfrom
    1.26 +To: $hto
    1.27 +Subject: $hsubject
    1.28 +
    1.29 +Hallo Fritz!
    1.30 +
    1.31 +..
    1.32 +there is a dot above (Yes, one and not two).
    1.33 +
    1.34 +command was: $cmd
    1.35 +
    1.36 +Fritz
    1.37 +.
    1.38 +
    1.39 +EOF
    1.40 +
    1.41 +#
    1.42 +# Testing with rcpt on cmd line with -oi option
    1.43 +# (dot does not end)
    1.44 +#
    1.45 +# the command to be run:
    1.46 +cmd="$mm_bin -C ./test.conf -oi $to"
    1.47 +
    1.48 +$cmd <<EOF
    1.49 +From: $hfrom
    1.50 +To: $hto
    1.51 +Subject: $hsubject
    1.52 +
    1.53 +Hallo Fritz!
    1.54 +.
    1.55 +there is a dot above.
    1.56 +
    1.57 +command was: $cmd
    1.58 +
    1.59 +Fritz
    1.60 +
    1.61 +EOF
    1.62 +
    1.63 +#
    1.64 +# Testing with rcpt read from headers (-t option)
    1.65 +# (dot does end)
    1.66 +#
    1.67 +# the command to be run:
    1.68 +cmd="$mm_bin -C ./test.conf -t"
    1.69 +
    1.70 +$cmd <<EOF
    1.71 +From: $hfrom
    1.72 +To: $hto
    1.73 +Subject: $hsubject
    1.74 +
    1.75 +Hallo Fritz!
    1.76 +..
    1.77 +there is a dot above.
    1.78 +
    1.79 +command was: $cmd
    1.80 +
    1.81 +Fritz
    1.82 +.
    1.83 +
    1.84 +EOF