LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 27
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
RandomTroll
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 290

Original Poster
Rep: Reputation: 27
Adding

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.
 
  


Reply


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 11:58 PM.

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