if (strchr(ChrPtr(section), '[') != NULL) {
StrBufStripAllBut(section, '[', ']');
}
- CtdlLogPrintf(CTDL_DEBUG, "Section is: %s%s\n",
- ChrPtr(section),
- (StrLength(section) == 0) ? "(empty)" : ""
+ CtdlLogPrintf(CTDL_DEBUG, "Section is: [%s]\n",
+ (StrLength(section) == 0) ? "(empty)" : ChrPtr(section)
);
/* Burn the cache if we don't have the same section of the
StrBufStripAllBut(partial, '<', '>');
is_partial = 1;
}
- if (is_partial == 0)
- if (StrLength(partial) > 0)
- CtdlLogPrintf(CTDL_DEBUG,
- "Partial is %s\n",
- ChrPtr(partial));
+ if ( (is_partial == 1) && (StrLength(partial) > 0) ) {
+ CtdlLogPrintf(CTDL_DEBUG, "Partial is <%s>\n", ChrPtr(partial));
+ }
if (IMAP->cached_body == NULL) {
CCC->redirect_buffer = NewStrBufPlain(NULL, SIZ);
mime_parser(msg->cm_fields['M'], NULL,
*imap_load_part, NULL, NULL,
section,
- 1);
+ 1
+ );
}
if (loading_body_now) {
ptr = rfc822;
do {
- ptr = memreadline(ptr, buf, sizeof buf);
+ ptr = cmemreadline(ptr, buf, sizeof buf);
++lines;
if ((IsEmptyStr(buf)) && (rfc822_body == NULL)) {
rfc822_body = ptr;