---
name: "xfmmailcap"
section: "1"
platform: "linux"
package: "xfm"
version: "1.5.4-3"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/xfmmailcap"
---

# xfmmailcap(1)

show mailcap information as parsed by xfm

## NAME

xfmmailcap - show mailcap information as parsed by xfm

## SYNOPSIS

**xfmmailcap --help**

**xfmmailcap *mime-type* \[(default\|all\|edit\|view) \[*filename*\]\]**

## DESCRIPTION

xfmmailcap parses the [**xfm**(1)](/xfm/1.md)'s mailcap file (see [**xfm\_mailcap**(5)](/xfm_mailcap/5.md) for its format) and prints information about what command xfm would use when told to open a file of the given *mime-type*.

If there is no second argument, the default it **default**.

If there is a third argument, xfmmailcap will insert this filename into the action. (This is not yet implemented)

## ACTIONS

### all

Show all information collected about this mime-type.

### default

Show the action [**xfm**(1)](/xfm/1.md) would start when confronted with this action, together with all debug output xfm would show when the **echoMimeSearch** resource represents True. It first tries everything the **edit** action would show and if nothing is found there, then it tries the **view** action.

### edit

Find the best (in the sense of highest priority) command to edit this mime type.

### view

Find the best (in the sense of highest priority) command to view this mime type. (There is yet no way to trigger that from within xfm).

## CAVEAT

xfmmailcap has the paths *$HOME***/.xfm/xfm\_mailcap** and **/etc/X11/xfm/xfm\_mailcap** built in statically. This differs from [**xfm**(1)](/xfm/1.md), where all of these can be changed by means of X resources.

## FILES

- ***$HOME*/.xfm/xfm\_mailcap**

  If this file exists, it is read and its content used as mailcap database. See [**xfm\_mailcap**(5)](/xfm_mailcap/5.md) for its format.

- **/etc/X11/xfm/xfm\_mailcap**

  If the previous file is not found, this one is used instead. Same format.

## SEE ALSO

[**xfm**(1)](/xfm/1.md), [**xfm\_mailcap**(5)](/xfm_mailcap/5.md).

## COPYRIGHT

Copyright © 2006 Bernhard R. Link\
 This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
