Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-14-2012, 03:50 PM   #1
Registered: Mar 2010
Distribution: Slackware
Posts: 410

Rep: Reputation: 32
I have failed to add a mime-type for sc files to .mailcap

I want to add an entry to .mailcap to run my spreadsheet program, sc,
when it encounters a file with the .sc extension.

/etc/file/magic has an sc entry that includes:

!:mime application/x-sc

I put:

application/x-sc; /usr/bin/sc %s

in my .mailcap. /usr/share/mime has an entry for sc files.
/usr/bin/file identifies sc files correctly. I've read RFC 1254. No
error is reported. I've inserted lots of other file types into
.mailcap successfully: where have I gone wrong with sc?

It's in the detection: if I rewrite .mailcap to run sc on jpeg files
then mail tries to run sc on jpeg files

Last edited by RandomTroll; 02-14-2012 at 06:55 PM.
Old 02-19-2012, 07:30 PM   #2
Registered: Mar 2010
Distribution: Slackware
Posts: 410

Original Poster
Rep: Reputation: 32

application/x-sc sc

to $HOME/.mime.types solved this problem. .mime.types is an 'extension map'; some apps look for a global extension map.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] codelite crash, after message Mailcap file /etc/mailcap, line 111.... kaz2100 Linux - Software 1 09-05-2011 08:20 PM
Getting Content-type/Mime type of the file using shellscript swathikumar Linux - Newbie 9 05-25-2011 12:48 AM
mime type associations for Office files shadowsnipes Slackware 2 10-25-2009 08:27 PM
Warning ___ specifies undefined mime type/service type mbvpixies78 Linux - Software 0 12-29-2007 11:25 PM
mime/mailcap cli launcher? gunnix Linux - Software 1 10-19-2005 03:11 PM

All times are GMT -5. The time now is 01:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration