Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
mailcap.order(5)
Edit
PageHistory
Diff
Info
LikePages
MAILCAP.ORDER !!!MAILCAP.ORDER NAME DESCRIPTION LIMITATIONS AUTHOR ---- !!NAME /etc/mailcap.order - the mailcap ordering specifications !!DESCRIPTION The order of entries in the ''/etc/mailcap'' file can be altered by editing the ''/etc/mailcap.order'' file. Each line of that file specifies a package and an optional mime type. Mailcap entries that match will be placed in the order of this file. Entries that don't match will be placed later. __Example__ mime-support:*/* gv:application/postscript netscape:text/html less:text/* emacs:text/* The above would make any entries provided by the __mime-support__ package (as found in the ''/usr/lib/mime/packages'' directory) take priority over everything else. The __gv__ package will be used over anything else when it comes to postscript documents. __Netscape__ will be used for any html documents and __less__ will be used for any remaining text documents. However, since neither netscape or less provide for editing documents, any edit or compose actions will fall through to the __emacs__ rules. After modifying this file, be sure to run ''/usr/sbin/update-mime'' (as root) to propagate the changes into the ''/etc/mailcap'' file. !!LIMITATIONS There is currently no way to break out a certain type from a wildcard rule. If, for example, both xv and gimp were to specify gif'' images but use gimp for ''jpeg'' images. Also, I would like to add the ability to specify certain actions in the rules. For example, if netscape were to have an ''edit'' rule but I wanted to use emacs for editing/creating html documents, I could place a line like emacs:text/* action=edit|compose before the netscape entry. The __update-mime__ program would then spit out entries such that netscape ''view'' rule comes __before__ the emacs ''view'' rule but have the netscape ''edit'' rule comes __after__ the emacs ''edit'' rule. !!AUTHOR The __mailcap.order__ specification was written by Brian White __ ----
2 pages link to
mailcap.order(5)
:
update-mime(8)
Man5m
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.