summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
49c748c)
but that's not always the case. Added search for the boundary
in ci->ci_attrs[].
{
int result = 0;
CI ci = &ct->c_ctinfo;
{
int result = 0;
CI ci = &ct->c_ctinfo;
+ char *boundary = ci->ci_values[0], **ap, **vp;
+
+ for (ap = ci->ci_attrs, vp = ci->ci_values; *ap; ++ap, ++vp) {
+ if (! mh_strcasecmp ("boundary", *ap)) {
+ boundary = *vp;
+ break;
+ }
+ }
/*
* Output all header fields for this content
/*
* Output all header fields for this content
for (part = m->mp_parts; part; part = part->mp_next) {
CT p = part->mp_part;
for (part = m->mp_parts; part; part = part->mp_next) {
CT p = part->mp_part;
- fprintf (out, "\n--%s\n", ci->ci_values[0]);
+ fprintf (out, "\n--%s\n", boundary);
if (output_content (p, out) == NOTOK)
return NOTOK;
}
if (output_content (p, out) == NOTOK)
return NOTOK;
}
- fprintf (out, "\n--%s--\n", ci->ci_values[0]);
+ fprintf (out, "\n--%s--\n", boundary);