dovecot-2.0: lmtp: Removed duplicate checking, at least for now.

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 26 15:43:40 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/b13146b6a91b
changeset: 11190:b13146b6a91b
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 26 15:43:01 2010 +0300
description:
lmtp: Removed duplicate checking, at least for now.
If duplicate checking is done, DATA should also send proper reply for them.

diffstat:

 src/lmtp/commands.c |  16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)

diffs (33 lines):

diff -r 6a3eaad2bae6 -r b13146b6a91b src/lmtp/commands.c
--- a/src/lmtp/commands.c	Fri Apr 23 15:10:32 2010 +0300
+++ b/src/lmtp/commands.c	Mon Apr 26 15:43:01 2010 +0300
@@ -111,17 +111,6 @@
 	return 0;
 }
 
-static bool rcpt_is_duplicate(struct client *client, const char *address)
-{
-	const struct mail_recipient *rcpt;
-
-	array_foreach(&client->state.rcpt_to, rcpt) {
-		if (strcmp(rcpt->address, address) == 0)
-			return TRUE;
-	}
-	return FALSE;
-}
-
 static bool
 client_proxy_rcpt_parse_fields(struct lmtp_proxy_settings *set,
 			       const char *const *args, const char **address)
@@ -352,11 +341,6 @@
 	memset(&rcpt, 0, sizeof(rcpt));
 	address = lmtp_unescape_address(t_strndup(arg + 4, len - 5));
 
-	if (rcpt_is_duplicate(client, address)) {
-		client_send_line(client, "250 2.1.5 OK, ignoring duplicate");
-		return 0;
-	}
-
 	if (*argv != NULL) {
 		client_send_line(client, "501 5.5.4 Unsupported options");
 		return 0;


More information about the dovecot-cvs mailing list