From 4ce148eb0fa7c1a283c7317da39bf0e3d6cd1b98 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Sat, 18 Jul 2009 11:35:46 +0200
Subject: [PATCH] Testsuite: added tests for envelope/address test behavior
 with non-existant subaddress :detail part.

---
 tests/extensions/subaddress/basic.svtest | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tests/extensions/subaddress/basic.svtest b/tests/extensions/subaddress/basic.svtest
index 695d29997..32f795422 100644
--- a/tests/extensions/subaddress/basic.svtest
+++ b/tests/extensions/subaddress/basic.svtest
@@ -97,3 +97,15 @@ test "Undisclosed-recipients" {
 		test_fail ":user matched group name";
 	}
 }
+
+test_set "envelope.to" "frop@sieve.nl";
+
+test "No detail" {
+	if envelope :detail "to" "virus" {
+		test_fail ":detail matched non-existant detail element in envelope (separator is missing)";
+	}
+
+	if address :detail "from" "virus" {
+		test_fail ":detail matched non-existant detail element in from header (separator is missing)";		
+	}
+}
-- 
GitLab