dovecot-2.0: imap: Added STATUS (X-VSIZE) command for getting ma...

dovecot at dovecot.org dovecot at dovecot.org
Wed May 12 14:16:20 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/119d8eebda38
changeset: 11281:119d8eebda38
user:      Timo Sirainen <tss at iki.fi>
date:      Wed May 12 13:16:16 2010 +0200
description:
imap: Added STATUS (X-VSIZE) command for getting mailbox's virtual size.

diffstat:

 src/imap/imap-status.c |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (23 lines):

diff -r 51d0f5d8cc65 -r 119d8eebda38 src/imap/imap-status.c
--- a/src/imap/imap-status.c	Wed May 12 13:15:40 2010 +0200
+++ b/src/imap/imap-status.c	Wed May 12 13:16:16 2010 +0200
@@ -36,6 +36,8 @@
 			items |= STATUS_UNSEEN;
 		else if (strcmp(item, "HIGHESTMODSEQ") == 0)
 			items |= STATUS_HIGHESTMODSEQ;
+		else if (strcmp(item, "X-VSIZE") == 0)
+			items |= STATUS_VIRTUAL_SIZE;
 		else if (strcmp(item, "X-GUID") == 0)
 			items_r->guid = TRUE;
 		else {
@@ -120,6 +122,10 @@
 		str_printfa(str, "HIGHESTMODSEQ %llu ",
 			    (unsigned long long)status->highest_modseq);
 	}
+	if ((items->mailbox_items & STATUS_VIRTUAL_SIZE) != 0) {
+		str_printfa(str, "X-VSIZE %llu ",
+			    (unsigned long long)status->virtual_size);
+	}
 	if (items->guid) {
 		str_printfa(str, "X-GUID %s ",
 			    mail_guid_128_to_string(result->mailbox_guid));


More information about the dovecot-cvs mailing list