run-mailcap

Inherit

This executable can inherit functions from another.
  1. This function can be performed by any unprivileged user.
    run-mailcap --action=view text/plain:/etc/hosts
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    run-mailcap --action=view text/plain:/etc/hosts
    Functions

    Inherits from less, thus possibly granting its functions.

  2. CommentThe file must exist and be not empty.
    This function can be performed by any unprivileged user.
    run-mailcap --action=edit text/plain:/path/to/output-file
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    run-mailcap --action=edit text/plain:/path/to/output-file
    Functions

    Inherits from vi, thus possibly granting its functions.