imap_free_msgids();
imap_free_transmitted_message();
- if (IMAP->cached_rfc822_data != NULL) {
- free(IMAP->cached_rfc822_data);
- IMAP->cached_rfc822_data = NULL;
+ if (IMAP->cached_rfc822 != NULL) {
+ FreeStrBuf(&IMAP->cached_rfc822);
IMAP->cached_rfc822_msgnum = (-1);
IMAP->cached_rfc822_withbody = 0;
}
CC->session_specific_data = malloc(sizeof(citimap));
memset(IMAP, 0, sizeof(citimap));
IMAP->authstate = imap_as_normal;
- IMAP->cached_rfc822_data = NULL;
IMAP->cached_rfc822_msgnum = (-1);
IMAP->cached_rfc822_withbody = 0;
int i;
struct floor *fl;
int floors = 0;
- char buf[SIZ];
+ char Namespace[SIZ];
cprintf("* NAMESPACE ");
if (fl->f_flags & F_INUSE) {
if (floors > 0) cprintf(" ");
cprintf("(");
- snprintf(buf, sizeof(buf), "%s/", fl->f_name);
- plain_imap_strout(buf);
+ snprintf(Namespace, sizeof(Namespace), "%s/", fl->f_name);
+ plain_imap_strout(Namespace);
cprintf(" \"/\")");
++floors;
}