]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: Removed duplicate checking, at least for now.
authorTimo Sirainen <tss@iki.fi>
Mon, 26 Apr 2010 12:43:01 +0000 (15:43 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 26 Apr 2010 12:43:01 +0000 (15:43 +0300)
If duplicate checking is done, DATA should also send proper reply for them.

--HG--
branch : HEAD

src/lmtp/commands.c

index 8b9a9c478a9248dd555bdc8c4397f0cad566bd50..e882e9e7eed3ad0c8534f67b492ff85989552e0d 100644 (file)
@@ -111,17 +111,6 @@ int cmd_mail(struct client *client, const char *args)
        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 @@ int cmd_rcpt(struct client *client, const char *args)
        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;