adc8d02ea9
- auth: If userdb lookup fails internally, don't cache the result. - Added support for userdb lookup to fail with a reason - sdbox: mailbox_update() could have changed UIDVALIDITY incorrectly - layout=maildir++: Fixed deleting mailboxes with mailbox=file storages - Fixed potential problems with parsing invalid address groups. - dsync: Don't repeatedly try to keep opening the same failing mailbox - lib-storage: Don't crash if root mail directory isn't given.
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
diff -up dovecot-2.0.beta4/dovecot-2-0-pigeonhole-940554ef4a55/src/managesieve/main.c.betahotfix dovecot-2.0.beta4/dovecot-2-0-pigeonhole-940554ef4a55/src/managesieve/main.c
|
|
--- dovecot-2.0.beta4/dovecot-2-0-pigeonhole-940554ef4a55/src/managesieve/main.c.betahotfix 2010-04-06 11:00:28.995085479 +0200
|
|
+++ dovecot-2.0.beta4/dovecot-2-0-pigeonhole-940554ef4a55/src/managesieve/main.c 2010-04-06 11:13:50.448016048 +0200
|
|
@@ -231,6 +231,14 @@ static void client_connected(const struc
|
|
}
|
|
}
|
|
|
|
+static void login_client_failed(const struct master_login_client *client,
|
|
+ const char *errormsg)
|
|
+{
|
|
+ const char *msg;
|
|
+ msg = t_strdup_printf("* BAD %s\r\n", errormsg);
|
|
+ (void)write(client->fd, msg, strlen(msg));
|
|
+}
|
|
+
|
|
int main(int argc, char *argv[])
|
|
{
|
|
static const struct setting_parser_info *set_roots[] = {
|
|
@@ -284,7 +292,8 @@ int main(int argc, char *argv[])
|
|
} else {
|
|
master_login = master_login_init(master_service, "auth-master",
|
|
postlogin_socket_path,
|
|
- login_client_connected);
|
|
+ login_client_connected,
|
|
+ login_client_failed);
|
|
io_loop_set_running(current_ioloop);
|
|
}
|
|
|