dovecot-2.0: imap-quota: If user has no quota roots, don't retur...
dovecot at dovecot.org
dovecot at dovecot.org
Thu May 20 11:02:14 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/295e12b91054
changeset: 11347:295e12b91054
user: Timo Sirainen <tss at iki.fi>
date: Thu May 20 10:01:43 2010 +0200
description:
imap-quota: If user has no quota roots, don't return QUOTAROOT reply.
diffstat:
src/plugins/imap-quota/imap-quota-plugin.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diffs (22 lines):
diff -r 8954b4d78dd2 -r 295e12b91054 src/plugins/imap-quota/imap-quota-plugin.c
--- a/src/plugins/imap-quota/imap-quota-plugin.c Thu May 20 09:31:41 2010 +0200
+++ b/src/plugins/imap-quota/imap-quota-plugin.c Thu May 20 10:01:43 2010 +0200
@@ -116,10 +116,14 @@
mailbox_free(&box);
/* send replies */
- client_send_line(client, str_c(quotaroot_reply));
- o_stream_send(client->output, str_data(quota_reply),
- str_len(quota_reply));
- client_send_tagline(cmd, "OK Getquotaroot completed.");
+ if (str_len(quota_reply) == 0)
+ client_send_tagline(cmd, "OK No quota.");
+ else {
+ client_send_line(client, str_c(quotaroot_reply));
+ o_stream_send(client->output, str_data(quota_reply),
+ str_len(quota_reply));
+ client_send_tagline(cmd, "OK Getquotaroot completed.");
+ }
return TRUE;
}
More information about the dovecot-cvs
mailing list