rem: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Size of MIME attachment %lu bytes\n", (unsigned long)content->size));
add: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Size of MIME attachment content is %lu bytes\n", (unsigned long)content->size));
context: soap_count_attachments(struct soap *soap){ #ifndef WITH_LEANER  register struct soap_multipart *content;  register size_t count = soap->count;  if (soap->mode & SOAP_ENC_DIME)  { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Calculating the size of DIME attachments\n"));    for (content = soap->dime.first; content; content = content->next)    { count += 12 + ((content->size+3)&(~3));      if (content->id)        count += ((strlen(content->id)+3)&(~3));      if (content->type)        count += ((strlen(content->type)+3)&(~3));      if (content->options)        count += ((((unsigned char)content->options[2] << 8) | ((unsigned char)content->options[3]))+7)&(~3);      DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Size of DIME attachment %lu bytes\n", (unsigned long)content->size));    }  }  if ((soap->mode & SOAP_ENC_MIME) && soap->mime.boundary)  { register size_t n = strlen(soap->mime.boundary);    DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Calculating the size of MIME attachments\n"));    for (content = soap->mime.first; content; content = content->next)    { register const char *s;      /* count \r\n--boundary\r\n */      count += 6 + n;      /* count Content-Type: ...\r\n */      if (content->type)        count += 16 + strlen(content->type);      s = soap_str_code(mime_codes, content->encoding);      /* count Content-Transfer-Encoding: ...\r\n */      if (s)        count += 29 + strlen(s);      /* count Content-ID: ...\r\n */      if (content->id)        count += 14 + strlen(content->id);      /* count Content-Location: ...\r\n */      if (content->location)        count += 20 + strlen(content->location);      /* count Content-Description: ...\r\n */      if (content->description)        count += 23 + strlen(content->location);      /* count \r\n...content */      count += 2 + content->size;      DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Size of MIME attachment %lu bytes\n", (unsigned long)content->size));    }    /* count \r\n--boundary--\r\n */    count += 8 + n;  }  return count;#else  return soap->count;#endif}