view tests/localhost-stdin/test @ 132:2685e59f6f43

small clarity improvement
author meillo@marmaro.de
date Tue, 06 Jul 2010 13:02:49 +0200 (2010-07-06)
parents 0379789a847b
children 60bb2dbe2866
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