SF.net SVN: postfixadmin:[531] trunk/VIRTUAL_VACATION/tests
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2009-01-20 13:22:21
|
Revision: 531 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=531&view=rev Author: GingerDog Date: 2009-01-20 11:49:03 +0000 (Tue, 20 Jan 2009) Log Message: ----------- updating tests Modified Paths: -------------- trunk/VIRTUAL_VACATION/tests/test.sh Added Paths: ----------- trunk/VIRTUAL_VACATION/tests/teodor-smtp-envelope-headers.txt Added: trunk/VIRTUAL_VACATION/tests/teodor-smtp-envelope-headers.txt =================================================================== --- trunk/VIRTUAL_VACATION/tests/teodor-smtp-envelope-headers.txt (rev 0) +++ trunk/VIRTUAL_VACATION/tests/teodor-smtp-envelope-headers.txt 2009-01-20 11:49:03 UTC (rev 531) @@ -0,0 +1,21 @@ +X-Original-To: da...@ex... +Delivered-To: da...@ex... +X-Virus-Scanned: amavisd-new at mx.ro +From: "Teodor Iacob" <da...@ex...> +To: <da...@ex...> +Subject: estsgf +Date: Mon, 19 Jan 2009 14:49:17 +0200 +X-Mailer: Microsoft Office Outlook 11 +X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 +Thread-Index: Acl6NFZyC+AImZ1WQSS0cPUO/Y2FqA== +X-BRO-MailScanner-Information: Please contact the ISP for more information +X-BRO-MailScanner-ID: n0JCoUwB014357 +X-BRO-MailScanner: Found to be clean +X-MailScanner-From: da...@ex... +X-BRO-MailScanner-Watermark: 1232974231.00027@11VRmWFJ18WRflEdvrILlQ + +dsgsgfsgfg + +-- + +Teodor Iacob Modified: trunk/VIRTUAL_VACATION/tests/test.sh =================================================================== --- trunk/VIRTUAL_VACATION/tests/test.sh 2009-01-18 12:05:14 UTC (rev 530) +++ trunk/VIRTUAL_VACATION/tests/test.sh 2009-01-20 11:49:03 UTC (rev 531) @@ -14,6 +14,7 @@ export PGDATABASE=postfix export PGHOST=pgsqlserver + echo "DELETE FROM vacation WHERE email = 'da...@ex...'" | psql # First time around, there should be no vacation record for da...@ex..., so these should all not cause mail to be sent. @@ -21,15 +22,29 @@ echo echo "NONE OF THESE SHOULD RESULT IN MAIL BEING SENT" echo -cat mailing-list.txt | perl ../vacation.pl -t yes -f fw-general-return-20540-david=exa...@li... -- david\#exa...@au... -cat test-email.txt | perl ../vacation.pl -t yes -f da...@ex... -- david\#exa...@au... -cat spam.txt | perl ../vacation.pl -t yes -f ma...@cc... -- david\#exa...@au... -cat asterisk-email.txt | perl ../vacation.pl -t yes -f www...@pa... -- david\#exa...@au... -cat facebook.txt | perl ../vacation.pl -t yes -f not...@fa... -- david\#exa...@au... -cat mail-myself.txt | perl ../vacation.pl -t yes -f da...@ex... -- david\#exa...@au... +#echo "On: mailing-list.txt:" +# cat mailing-list.txt | perl ../vacation.pl -t yes -f fw-general-return-20540-david=exa...@li... -- david\#exa...@au... +echo "On: test-email.txt:" +cat test-email.txt | perl ../vacation.pl -t yes -f da...@ex... -- david\#exa...@au... +echo "On: spam.txt:" +cat spam.txt | perl ../vacation.pl -t yes -f ma...@cc... -- david\#exa...@au... +echo "On: asterisk-email.txt:" +cat asterisk-email.txt | perl ../vacation.pl -t yes -f www...@pa... -- david\#exa...@au... +# do not reply to facebook +echo "On: facebook.txt:" +cat facebook.txt | perl ../vacation.pl -t yes -f not...@fa... -- david\#exa...@au... +# do not send yourself a vacation notice. +echo "On: mail-myself.txt:" +cat mail-myself.txt | perl ../vacation.pl -t yes -f da...@ex... -- david\#exa...@au... +# do not send yourself a vacation notice. +echo "On: teodor-smtp-envelope-headers.txt:" +cat teodor-smtp-envelope-headers.txt | perl ../vacation.pl -t yes -f da...@ex... -- david\#exa...@au... + + echo "INSERT INTO vacation (email, subject, body, created, active, domain) VALUES ('da...@ex...', 'I am on holiday', 'Yeah, that is right', NOW(), true, 'example.org')" | psql + echo echo "VACATION TURNED ON " echo @@ -46,4 +61,3 @@ echo " * Mailing myself - should not send vacation message" cat mail-myself.txt | perl ../vacation.pl -t yes -f da...@ex... -- david\#exa...@au... echo -echo This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |