X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fimap%2Fserv_imap.c;fp=citadel%2Fmodules%2Fimap%2Fserv_imap.c;h=5a1e6aaea706d6fe8b60d2a8a9768346df964db6;hp=7fb85e7f7124f563b8b53eb514d64eefb8cfc3a3;hb=2b80e75820618944e1c75b9c01aeeefc8b6b0c81;hpb=beb1318d129b2d470b6e0d138e2b302953e66dd3 diff --git a/citadel/modules/imap/serv_imap.c b/citadel/modules/imap/serv_imap.c index 7fb85e7f7..5a1e6aaea 100644 --- a/citadel/modules/imap/serv_imap.c +++ b/citadel/modules/imap/serv_imap.c @@ -985,6 +985,7 @@ void imap_close(int num_parms, ConstStr *Params) */ void imap_namespace(int num_parms, ConstStr *Params) { + long len; int i; struct floor *fl; int floors = 0; @@ -1005,8 +1006,8 @@ void imap_namespace(int num_parms, ConstStr *Params) if (fl->f_flags & F_INUSE) { /* if (floors > 0) IAPuts(" "); samjam says this confuses javamail */ IAPuts("("); - snprintf(Namespace, sizeof(Namespace), "%s/", fl->f_name); - plain_imap_strout(Namespace); + len = snprintf(Namespace, sizeof(Namespace), "%s/", fl->f_name); + IPutStr(Namespace, len); IAPuts(" \"/\")"); ++floors; } @@ -1158,6 +1159,7 @@ int imap_grabroom(char *returned_roomname, const char *foldername, int zapped_ok */ void imap_status(int num_parms, ConstStr *Params) { + long len; int ret; char roomname[ROOMNAMELEN]; char imaproomname[SIZ]; @@ -1186,9 +1188,9 @@ void imap_status(int num_parms, ConstStr *Params) * names and simply spew all possible data items. It's far easier to * code and probably saves us some processing time too. */ - imap_mailboxname(imaproomname, sizeof imaproomname, &CC->room); + len = imap_mailboxname(imaproomname, sizeof imaproomname, &CC->room); IAPuts("* STATUS "); - plain_imap_strout(imaproomname); + IPutStr(imaproomname, len); IAPrintf(" (MESSAGES %d ", msgs); IAPrintf("RECENT %d ", new); /* Initially, new==recent */ IAPrintf("UIDNEXT %ld ", CitControl.MMhighest + 1);