Re: attachments associations

On 07.07.2010 18:45:12, Jack wrote:
On 2010.07.07 01:30, Ildar Mulyukov wrote:
Content-Type: application/octet-stream; name="Tex_specCXD.doc"
Content-Disposition: attachment; filename="Tex_specCXD.doc"
Content-Transfer-Encoding: base64
This only looks stranger than it really is. Balsa (and, I suspect, most mail clients) pays no attention to the file name. It uses the mime type, and that gets set by the email client of the person who sent the message. There is nothing Balsa can do about it. I've received .doc attachements that Balsa open fine with OpenOffice (application/msword), and some (as above) that it will only save.

This doesn't imply Balsa can't handle such situations in more intelligent way.

  I wonder if it is the web email clients that cause this problem?
And saving to /tmp and opening properties in nautilus says it's
Word document (application/msword)
Once you have saved the file, the OS or window manager, or file manager can look at the file name and first few bytes to better know what it really is.
Not just name/extension but also magic bytes in a file. I guess this is how Balsa calculated "application/x-ole-storage".

P.S. Now I successfully hacked this case:
$ echo "application/x-ole-storage=abiword.desktop;oowriter.desktop;" >> ~/.local/share/applications/mimeapps.list

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]