- snprintf (buffer, sizeof(buffer), "%s-disposition-%s/%s",
- invo_name, ct->c_ctinfo.ci_type, ct->c_ctinfo.ci_subtype);
- cp = context_find (buffer);
- if (cp == NULL || *cp == '\0') {
- no_subtype = 1;
- snprintf (buffer, sizeof(buffer), "%s-disposition-%s", invo_name,
- ct->c_ctinfo.ci_type);
- cp = context_find (buffer);
- }
- if (cp != NULL && *cp != '\0') {
- if (strcasecmp (cp, "attachment") &&
- strcasecmp (cp, "inline")) {
+ cp = context_find_by_type ("disposition", ct->c_ctinfo.ci_type,
+ ct->c_ctinfo.ci_subtype);
+ if (cp != NULL) {
+ if (strcasecmp (cp, "attachment") && strcasecmp (cp, "inline")) {