Skip to content
Snippets Groups Projects
testsuite.svtest 1.51 KiB
Newer Older
test "Message Environment" {
From: sirius@example.org
To: nico@frop.example.com
	if not header :contains "from" "example.org" {
		test_fail "message data not set properly.";
From: nico@frop.example.com
To: stephan@nl.example.com
Subject: Friep!

Friep!
.
	if not header :is "from" "nico@frop.example.com" {
    	test_fail "message data not set properly.";
	test_set "envelope.from" "stephan@hutsefluts.example.net";
	if not envelope :is "from" "stephan@hutsefluts.example.net" {
		test_fail "envelope.from data not set properly (1).";
	}
	test_set "envelope.to" "news@example.org";
	if not envelope :is "to" "news@example.org" {
		test_fail "envelope.to data not set properly (1).";
	}
	if not envelope :is "auth" "sirius" {
		test_fail "envelope.auth data not set properly (1).";
	}
	test_set "envelope.from" "stephan@example.org";
	if not envelope :is "from" "stephan@example.org" {
		test_fail "envelope.from data not reset properly (2).";
	}
	test_set "envelope.to" "past-news@example.org";
	if not envelope :is "to" "past-news@example.org" {
		test_fail "envelope.to data not reset properly (2).";
	}
	if not envelope :is "auth" "zilla" {
		test_fail "envelope.auth data not reset properly (2).";
	}

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.