summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5b70872)
Handling the base case where the MIME part being looked up
is directly passed as function parameter was missing.
debug_print("found part %d/%s\n", mimeinfo->type, mimeinfo->subtype);
debug_print("found part %d/%s\n", mimeinfo->type, mimeinfo->subtype);
- if (mimeinfo->type == MIMETYPE_MULTIPART) {
+ if (mimeinfo->type == type
+ && !strcasecmp(mimeinfo->subtype, subtype)) {
+ context->found = mimeinfo;
+ } else if (mimeinfo->type == MIMETYPE_MULTIPART) {
if (!strcasecmp(mimeinfo->subtype, "alternative")
|| !strcasecmp(mimeinfo->subtype, "related")) {
context->found = procmime_mimeinfo_next(mimeinfo);
if (!strcasecmp(mimeinfo->subtype, "alternative")
|| !strcasecmp(mimeinfo->subtype, "related")) {
context->found = procmime_mimeinfo_next(mimeinfo);