Forrest logo
back to the run-mailcap tool

run-mailcap:tldr:ee972

run-mailcap: Display the found command without actually executing it.
$ run-mailcap --action=ACTION --norun ${filename}
try on your machine

The command run-mailcap is used to execute the appropriate action for a given file, based on the mailcap configuration file.

Here is the breakdown of the command:

  • run-mailcap: This is the main command that runs the mailcap utility.
  • --action=ACTION: This option specifies the action to be performed on the file. Replace ACTION with the desired action, such as view, edit, or print.
  • --norun: This option tells run-mailcap not to actually run the command for the file, but instead display the command that would be executed.
  • ${filename}: This is a placeholder for the actual name of the file. Replace ${filename} with the name of the file you want to perform the action on, including its path if necessary.

Overall, this command is used to determine and execute the appropriate action for a given file using the mailcap configuration file. The --action option specifies the action, and --norun just displays the command without running it. The file name is provided after ${filename}.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the run-mailcap tool