dovecot-2.2: lmtp: Fixed lmtp_user_concurrency_limit=0 to actual...

dovecot at dovecot.org dovecot at dovecot.org
Fri Mar 6 14:37:46 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/9c69c197b527
changeset: 18304:9c69c197b527
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Mar 06 16:37:07 2015 +0200
description:
lmtp: Fixed lmtp_user_concurrency_limit=0 to actually mean unlimited

diffstat:

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

diffs (13 lines):

diff -r 73e013bc64a4 -r 9c69c197b527 src/lmtp/commands.c
--- a/src/lmtp/commands.c	Fri Mar 06 16:33:23 2015 +0200
+++ b/src/lmtp/commands.c	Fri Mar 06 16:37:07 2015 +0200
@@ -758,7 +758,8 @@
 	input = mail_storage_service_user_get_input(rcpt->service_user);
 	username = t_strdup(input->username);
 
-	if (rcpt->parallel_count >= client->lmtp_set->lmtp_user_concurrency_limit) {
+	if (client->lmtp_set->lmtp_user_concurrency_limit > 0 &&
+	    rcpt->parallel_count >= client->lmtp_set->lmtp_user_concurrency_limit) {
 		client_send_line(client, ERRSTR_TEMP_USERDB_FAIL_PREFIX
 				 "Too many concurrent deliveries for user",
 				 rcpt->address);


More information about the dovecot-cvs mailing list