The tag has no usage guidance.

learn more… | top users | synonyms (1)

10
votes
4answers
12k views

Utility for extracting MIME attachments [closed]

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 ...
7
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
208 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
2k 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
2k views

Disable “open with” option on Firefox downloads (force Firefox to always save all files)

The symptoms Users open their web mail accounts, click on some attachment, and click "Open with Word". Users edit their precious documents for hours. Users save word doc and exit. Users can't find ...
4
votes
1answer
641 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
9k 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
5k 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
1k 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?
3
votes
1answer
94 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
2answers
785 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 ...
3
votes
1answer
431 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 ...
3
votes
0answers
49 views

Getting rid of Flash in Firefox (MIME)

After having had Flash installed and blocked with NoScript for the last few years (except on a enable-per-use base), I have recently -- a month or so ago -- grown tired of the frequent security issues ...
3
votes
0answers
393 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
2answers
109 views

Chromium: prevent unpacking tar.gz

The latest Chrome and Chromium seems to unpack .tar.gz files automatically for me on OS X and Linux. When using wget with the same URL, it shows: $ wget http://mydomain/dir/file.tar.gz ... HTTP ...
2
votes
2answers
79 views

What is the correct MIME type for a tar.gz file?

What is the correct MIME type for a tar.gz file? I've searched around and found several values being used, including: application/x-gzip application/x-gtar application/x-tgz But I could find no ...
2
votes
3answers
1k 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
7k 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
6k 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
1k 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
2k 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
0answers
163 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
51 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
1answer
141 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
15k 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
2answers
1k 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
2answers
1k 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 ...
1
vote
1answer
30 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
1answer
3k 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
4k 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
693 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
1answer
61 views

KDE launcher opens .desktop files in kate

Opening programs via the 'Application Launcher' menu, then selecting the program works. Using the launcher generated on the panel, eg by right-clicking on an open program, then selecting 'Show A ...
1
vote
1answer
3k views

“windows media player cannot play the file” mp4

We have an .mp4 video hosted on a web site. I can play back the video from the production version of the web site, but not the test version of the site. The production web site has the .mp4 MIME ...
1
vote
2answers
582 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
1k 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
926 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
1answer
222 views

Nginx cannot serve css files because of MIME type error

My Setup: It is a nginx/gunicorn setup for django webapp. Here is my nginx config file: worker_processes 1; user ubuntu nogroup; # for systems with a "nogroup" # user nobody nobody; # for ...
1
vote
1answer
81 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
175 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
171 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
265 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
70 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
163 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
398 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
3k 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
793 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
1answer
13 views

Mimetype --stdin always returns text/plain

I am having a hard time getting the correct mimetype info without relaying on the file extension / inode data. When using magic it returns with text/plain ever time regardless of what the file is. ...