From 63ed66d9709a2c661e9943fa77b63cc6d595b73e Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Sun, 21 Dec 2008 15:55:07 +0100
Subject: [PATCH] Fixed accidental paste in sieve-address.c.

---
 src/lib-sieve/sieve-address.c | 23 -----------------------
 1 file changed, 23 deletions(-)

diff --git a/src/lib-sieve/sieve-address.c b/src/lib-sieve/sieve-address.c
index ec962f806..35593ae4f 100644
--- a/src/lib-sieve/sieve-address.c
+++ b/src/lib-sieve/sieve-address.c
@@ -324,30 +324,7 @@ bool sieve_address_validate
 {
 	struct sieve_message_address_parser ctx;
 
-	memset(&ctx, 0, sizeof(ctx));bool sieve_validate_rfc2822_mailbox(const char *address, const char **error_r)
-{
-	struct sieve_message_address_parser ctx;
-
 	memset(&ctx, 0, sizeof(ctx));
-	
-	ctx.local_part = t_str_new(128);
-	ctx.domain = t_str_new(128);
-	ctx.str = t_str_new(128);
-	ctx.error = t_str_new(128);
-
-	if ( !parse_mailbox_address(&ctx, (const unsigned char *) address, 
-		strlen(address)) ) {
-		if ( error_r != NULL )	
-			*error_r = str_c(ctx.error);
-		return FALSE;
-	}
-
-	if ( error_r != NULL )
-		*error_r = NULL;
-
-	return TRUE;
-}
-
 
 	ctx.local_part = ctx.domain = ctx.str = t_str_new(128);
 	ctx.error = t_str_new(128);
-- 
GitLab