view tests/test.templ @ 30:983a603c2ff2

added old changlog entry for 0.2.21, sourced from debian/changelog
author meillo@marmaro.de
date Thu, 06 May 2010 12:54:00 +0200
parents 08114f7dcc23
children
line wrap: on
line source

#! /bin/bash

# should be run from within tests dir
# set if you move this:
mm_src_dir=../src
mm_bin=$mm_src_dir/masqmail

#
hfrom="\"Fritz Meier\" <`logname`@RECV_HOST>"
hto=$hfrom
to=`logname`@RECV_HOST
hsubject="MasqMail stdin Test"

#
# 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