The tag has no wiki summary.

learn more… | top users | synonyms (1)

8
votes
4answers
9k views

Utility for extracting MIME attachments

I am looking for a command-line tool for Unix (ideally, available in a Debian / Ubuntu package) for extracting all MIME parts from a multipart email message (or the body from a singlepart with an ...
6
votes
1answer
1k views

Modify Firefox mimetypes.rdf to prompt Open With for application/octet-stream

Some web-servers intentionally or inadvertently use the application/octet-stream mime-type for files where either the actual mime-type isn't known or when they are incorrectly configured. Or perhaps ...
5
votes
1answer
170 views

Who decides if file format is popular enough to have its own MIME type?

Who decides, if a program is popular enough to have its own MIME type? Right now, I program something for dealing with .srt subtitles - and while on wikipedia, it has application/x-subrip MIME type, ...
5
votes
1answer
1k views

How does Linux decide on a default application?

I know that each program that can open files has a desktop entry under /usr/share/applications, and that the defaults for each mimetype are stored in /usr/share/applications/defaults.list and ...
4
votes
2answers
321 views

Force firefox to always download all files / disable “open with” option

Background: users open their webmail. Users click on attachments. Users click "Open with Word". Users edit their precious documents for hours. Users save word doc and exit. Users can't find file. ...
4
votes
1answer
546 views

How to change default pdf viewer for all users in command line

I'm using Debian squeeze with Gnome Desktop for all my users. I have a group of machines to set up so that all users should use xpdf as a default viewer (rather than evince). I want this set up to be ...
3
votes
5answers
7k views

How can I tell how many bytes a block of text in an email takes up?

I'm trying to find out how many bytes of data a PORTION of an email is taking up (not the whole email). How can I find this out? Maybe there's something in a text editor like notepad++ that could ...
3
votes
1answer
4k views

Determine the mime type when downloading a file

I want to view the mime type when I am downloading a file. How can I do this? (I am using Firefox at the moment, but I can download another browser if necessary)
3
votes
4answers
5k views

Thunderbird uses wrong attachment mime type on Windows Vista

Thunderbird running on Windows Vista has usually sent Microsoft Word documents as mime type application/msword, which as I understand is correct. However, now it has suddenly decided to send Word ...
3
votes
1answer
92 views

Handling files without an extension

I'd like to know how Windows XP, Vista and 7 handle files without a file extension. I'd test it myself, but I don't have access to a Windows machine currently. To my knowledge, Windows XP throws up ...
3
votes
1answer
386 views

How to view alternate mime content in Wanderlust

How can I view alternate mime content in wanderlust ? All my mails are coming through as the HTML version, and sometimes I'd rather see the plain text version, even though I don't want to lose the ...
2
votes
1answer
920 views

How does Linux know what is the mimetype of a file?

How can linux know the mimetype of a file? Is there something written inside the file? Does it look at the extension of the file?
2
votes
3answers
890 views

Cron job outputs HTML; how to send mail as HTML

I have a cron job that if it fails outputs HTML. If it succeeds it outputs nothing, in which case I get no mail. If it does fail and write HTML, cron sends me the mail but it comes as plain text and ...
2
votes
1answer
6k views

Downloading only images using curl or wget?

UPDATED: I've found using this Bash script fixes the problem of having GIF files with a .jpg extension. I'm attempting to download images from a forum who's url uses the following format: ...
2
votes
1answer
2k views

Make Internet Explorer 9 open pages serving eml files with mail desktop client

The context is the following one : Users can open eml files from explorer with desktop client (like lotus notes) When the eml file is opened from the website this response header : Content-Type: ...
2
votes
1answer
5k views

How to associate MIME type with a handler in OS X?

How can one add a new MIME type in OS X?
2
votes
2answers
964 views

file -i returns wrong mime type for an mp3 with integrated image-thumbnail

If i enter $ file -i music.mp3 it returns music.mp3: application/octet-stream; charset=binary If i wipe all tags and image in this file it recognises MIME type correctly. music.mp3: audio/mpeg; ...
2
votes
1answer
1k views

Mime format message

How to read mime encoded files? We have converted .msg file to .mhtml for better reading without MS Outlook. But we cannot read encoded text in bounced mails. message is as Content-Type: text/html; ...
2
votes
1answer
593 views

How can I view a PDF in Firefox when the server specifies the wrong content type?

I am using Mozilla Firefox with a PDF viewer plug-in. The plug-in has been correctly associated with Adobe Reader files to view them in the browser in the settings. I would like to be able to view ...
2
votes
0answers
52 views

Dolphin/Konqueror wrong file type recognition

In Dolphin/Konqueror files that are supposed to have "unknown" file type have "Microsoft Help Attribute Definition File" as their type. This also affect files without extension with special symbols ...
2
votes
0answers
46 views

Configuring Apache2 /etc/mime.types to display .pgm images

I'm trying to display a .pgm image on my Apache2 server, however I can't seem to get it working. I've edited my /etc/mime.types file to include the line image/x-portable-graymap pgm, but it still ...
2
votes
0answers
304 views

Creating multipart/alternative mails in mutt?

I'd like to create a text/plain message using Markdown formatting and transform that into a multipart/alternative message where the text/html part has been generated from the Markdown. I've tried ...
2
votes
1answer
134 views

MIME Formatting issue

I have a question regarding MIME formatting and emails. Every now and again I get this kind of message come through. What could be causing it and what possible fix could I implement? The client is ...
1
vote
5answers
13k views

MIME decoder for Windows

Is there a (preferably command-line) MIME decoder available for Windows (like ripMIME for *nix)? Someone sent me a MIME encoded message (this one with multiple MIME parts) that Google mail nor ...
1
vote
1answer
27 views

Autofix file extensions based on content

Is there an app/script what will peek at file content and try to guess the correct file extension? I have a bunch of files recovered from a backup and it's a mix of images, videos and documents. The ...
1
vote
2answers
849 views

default mime type program is inconsistent between system and the mozilla firefox/thunderbird?

In kubuntu ,the default programs associated with mime types in mozilla products are completely different from the system-wide setting or user setting. For example, firefox/thunderbird will always use ...
1
vote
1answer
2k views

Download text/plain instead of opening in browser

By default Firefox opens pages with MIME Content-Type: text/plain in the browser. I would like to instead download these files. I realize I can File Save Page As, but I would like the Save File ...
1
vote
1answer
1k views

How do I set up preferred applications in Nautilus by file extension, rather than by mime type?

I regularly work with a few sorts of plain text files, some of these are code files that I want to open in a programmer's text editor, others are large (gigabyte or more) data files that I only want ...
1
vote
1answer
685 views

Why Does DreamWeaver CS5 Discriminate between File Extensions, Even After Modding Mime Types?

Hi folks, Even After I forced DreamWeaver CS5 to allow opening of .ast extensions as a MIME type of php5, which DreamWeaver now opens and colors correctly as described here, I still have trouble ...
1
vote
2answers
400 views

How to add a MIME type in IIS via windows command line

How can I add a MIME type (file type) like .apk to IIS via command line?
1
vote
1answer
3k views

How to enable mod_mime on apache2

I am running apache2 on debian 6. I am wondering how do I enable mod_mime? according to an Answer here, I need mod_mime loaded so that my webserver can load .css files. Current Modules I have loaded ...
1
vote
1answer
813 views

ffmpeg - How to set MIME-type?

I'm trying to set the proper MIME-type for an AAC file, but this command does not work: ffmpeg -i rain.mp3 -metadata mime-type="audio/aac" rainmp3toaac.aac but, actualy audio/x-hx-aac-adts is set. ...
1
vote
2answers
913 views

Mime-type problems with IE and wikipedia

If I search for something on wikipedia with google and try to click through to one of the articles, IE8 prompts me to download the page as it doesn't understand the mime-type. This has not always ...
1
vote
0answers
46 views

Open H and C files as text files in browser?

I'm using Firefox. When I come across a source file I want to examine, Firefox performs a download of the file. Then I have to wait 5 or 10 seconds for Xcode to spin up. For example, genks.c. I'd ...
1
vote
1answer
108 views

How to view text file in Firefox window without downloading it?

I want to see the content of a .m3u8 file without downloading it. I remember reading this trick somewhere, but I can't remember exactly where. What I do remember, is that it involves adding special ...
1
vote
0answers
121 views

Is there a work-around for Firefox not properly handling file actions without a mime type?

When a web application delivers a file to the browser without a mime-type (such as providing a WAV file as binary/octet-stream rather than audio/wav), Firefox will always display the dialog asking you ...
1
vote
0answers
213 views

Chrome not rendering CSS with wrong mime-types

Certain web pages incorrectly serve CSS with text/plain or text/html mime-types. This causes Chrome not to render any style at all. A few big sites like gizmag.com are affected, as well as smaller ...
1
vote
0answers
55 views

How does Firefox decide what to do when navigating to offline file and no MIME is available?

I am working on turning a part of a website into an simple offline application suitable to put on a memory stick. This involves saving all html, images and linked files and changing URLs so that they ...
1
vote
2answers
139 views

Font file association has been changed? [duplicate]

Possible Duplicate: How to restore Windows default Zip file functionality? I seem to be having a bit of a problem. Usually I download free fonts, because it's good to have different ones ...
1
vote
1answer
346 views

claws mail - modify email headers through an external program - for HTML messages

In Claws Mail, is there any way to insert / modify headers through an external program? According to this documentation on Actions, there does not seem to be any way to do this. Specifically, when ...
1
vote
0answers
2k views

How to configure MIME type associations for Safari 5.1?

I want to edit the MIME type settings for Safari so I could use MediaWiki's method to automatically edit text in an external editor, or more specifically, so I can change the associated application ...
0
votes
6answers
715 views

What is the simplest web server I can operate which also allows configuring mime-types?

I would like a dead-simple web/file server (ideally, something no more complicated than "run this command with these flags") which also allows specifying mime-types based on file extensions. Something ...
0
votes
2answers
30 views

Embedding an image that is on a company network in an html email viewable by people not on the network

My automated test takes a screenshot that needs to get emailed to managers in my company. currently, the screenshot is stored on a Hudson test server and my html email has this line: <img ...
0
votes
1answer
386 views

Should Thunderbird send inline png attachments as text/plain?

I'm composing emails in Thunderbird. When I attach png images by dragging to the header region, they are attached as Content-Type: image/png; name="foo.png" Content-Transfer-Encoding: base64 ...
0
votes
2answers
811 views

Zipping Epub: Mimetype file should contain only the string “application/epub+zip”

I followed this tutorial to create an epub file. The mimetype file only contains application/epub+zip and should not be compressed. However, the zip commands that were recommended to achieve the ...
0
votes
1answer
215 views

How can I see the plain text version of a MIME email?

I'm building an App that will send HTML emails. I compose MIME formatted email. I want to test both versions of the content (Html and Plain text) : Is there a way to see the plain/text version of the ...
0
votes
1answer
669 views

File command + total retrun list

With file command we can get the file type. File returns a unique answer for each file type. I want to get the total list that file can return for linux & solaris. For example, I have a partial ...
0
votes
1answer
24 views

How to configure Firefox to handle text/foo internally?

I frequently would like to display text-like content (e.g. text/turtle) directly in the browser (i.e. without downloading it or opening it in a separate text editor). Is there a way to configure ...
0
votes
0answers
19 views

purpose of MIME in mail message header

I received a mail which contains only english alphabets (hence all are ascii and shown below). When I checked the header of the mail (which is posted below), as far as I know, "MIME-version:1.0" is ...
0
votes
0answers
11 views

Code hosting and raw link on css

I have some repository with css files on assembla.com Today I get raw link for one file, to use it on jsbin.com But style take no effect, in console firefox log a message: style-sheet ...