From 23a5f9c86d1ca289a8b5e6857513009beab89f8c Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Fri, 17 Jul 2009 21:38:40 +0200
Subject: [PATCH] Testsuite: Notify: added test with empty :from argument for
 notify command.

---
 tests/extensions/enotify/errors.svtest            | 2 +-
 tests/extensions/enotify/errors/from-mailto.sieve | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/extensions/enotify/errors.svtest b/tests/extensions/enotify/errors.svtest
index 0fa19b601..5af36df3b 100644
--- a/tests/extensions/enotify/errors.svtest
+++ b/tests/extensions/enotify/errors.svtest
@@ -29,7 +29,7 @@ test "Invalid mailto :from address (FIXME: count only)" {
 		test_fail "compile should have failed";
 	}
 
-	if not test_error :count "eq" :comparator "i;ascii-numeric" "2" {
+	if not test_error :count "eq" :comparator "i;ascii-numeric" "3" {
 		test_fail "wrong number of errors reported";
 	}
 }
diff --git a/tests/extensions/enotify/errors/from-mailto.sieve b/tests/extensions/enotify/errors/from-mailto.sieve
index f40ed0468..7046040eb 100644
--- a/tests/extensions/enotify/errors/from-mailto.sieve
+++ b/tests/extensions/enotify/errors/from-mailto.sieve
@@ -2,3 +2,6 @@ require "enotify";
 
 # 1: Invalid from address
 notify :from "stephan#rename-it.nl" "mailto:stephan@example.com";
+
+# 2: Empty from address
+notify :from "" "mailto:stephan@example.com";
-- 
GitLab