#include "imap_tools.h"
+#ifndef HAVE_SNPRINTF
+#include "snprintf.h"
+#endif
+
/*
* Output a string to the IMAP client, either as a literal or quoted.
* (We do a literal if it has any double-quotes or backslashes.)
}
if (is_literal) {
- cprintf("{%d}\r\n%s", strlen(buf), buf);
+ cprintf("{%ld}\r\n%s", strlen(buf), buf);
} else {
cprintf("\"%s\"", buf);
}
extract(buf, foldername, 0);
for (i = 0; i < MAXFLOORS; ++i) {
fl = cgetfloor(i);
- lprintf(9, "floor %d: %s\n", i, fl->f_name); /* FIXME take out */
if (fl->f_flags & F_INUSE) {
if (!strcasecmp(buf, fl->f_name)) {
extract(rbuf, foldername, 1);