Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6252930

MailcapCommandMap needs support for "fallback" entries in mailcap file

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.1
    • 1.0.2
    • other-libs
    • None
    • 1.1beta
    • generic
    • generic

      mailcap files may contain entries with a specific MIME type
      (e.g., text/plain) or with a MIME type that uses a wildcard
      for the subtype (e.g., text/*). MailcapCommandMap will search
      mailcap files in order, first looking for an exact match in each
      mailcap file, followed by a wildcard match in that same mailcap
      file, before moving on to the next mailcap file in the search
      list.

      In some cases it's desirable to include both entries for specific
      MIME types as well as an entry with a wildcard to allow support
      for types that don't have more specific support. However, because
      of the current search rules, and the inability to control the
      order of searching in some cases (e.g., the java.ext.dirs directory),
      The wildcard entry in one mailcap file may be found before the
      specific entry in another mailcap file.

      This is particularly a problem with JavaMail, which would like to
      provide support for many MIME types in a rather generic manner,
      without preventing applications from providing support that is
      more precisely matched to the particular MIME type.

      There should be a way to mark entries, in particular wildcard
      entries, so that they will only be used if a more specific match
      is not found after searching all mailcap files.

      ###@###.### 2005-04-09 00:41:25 GMT

            bshannon Bill Shannon (Inactive)
            bshannon Bill Shannon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: