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

MailcapCommandMap needs support for "fallback" entries in mailcap file

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.0.2
    • Fix Version/s: 1.1
    • Component/s: other-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      1.1beta
    • CPU:
      generic
    • OS:
      generic

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              bshannon Bill Shannon
              Reporter:
              bshannon Bill Shannon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: