char *desired_section;
desired_section = (char *)cbuserdata;
+ CtdlLogPrintf(CTDL_DEBUG, "imap_load_part() looking for %s, found %s\n",
+ desired_section,
+ partnum
+ );
if (!strcasecmp(partnum, desired_section)) {
client_write(content, length);
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);
else {
mime_parser(msg->cm_fields['M'], NULL,
*imap_load_part, NULL, NULL,
- section,
- 1);
+ ChrPtr(section),
+ 1
+ );
}
if (loading_body_now) {