dovecot-2.1: imapc: If base_dir isn't set, do a blocking DNS loo...

dovecot at dovecot.org dovecot at dovecot.org
Thu Feb 2 16:51:03 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/47072538ff11
changeset: 14060:47072538ff11
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 02 16:50:58 2012 +0200
description:
imapc: If base_dir isn't set, do a blocking DNS lookup.
This is mostly a workaround for being able to run imapc from standalone
programs (e.g. doveadm) without running Dovecot.

diffstat:

 src/lib-storage/index/imapc/imapc-storage.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 9d031f0b613d -r 47072538ff11 src/lib-storage/index/imapc/imapc-storage.c
--- a/src/lib-storage/index/imapc/imapc-storage.c	Thu Feb 02 16:49:46 2012 +0200
+++ b/src/lib-storage/index/imapc/imapc-storage.c	Thu Feb 02 16:50:58 2012 +0200
@@ -229,6 +229,7 @@
 		return -1;
 	}
 	set.dns_client_socket_path =
+		*_storage->user->set->base_dir == '\0' ? "" :
 		t_strconcat(_storage->user->set->base_dir, "/",
 			    DNS_CLIENT_SOCKET_NAME, NULL);
 	set.debug = _storage->set->mail_debug;


More information about the dovecot-cvs mailing list