View Single Post
armtwister's Avatar
Posts: 16 | Thanked: 11 times | Joined on Mar 2009 @ Cambridge, England
#601
I am really hoping that it will be possible to open OpenOffice e-mail attachments by clicking on them in Modest, the default e-mail application.

I have installed the truly excellent Dbus-Switchboard (all hail, O pipeline!), and set (for example) .doc to oo writer, so that opening a .doc file launches oo writer.

'Saving' a .doc file from Modest to a directory and then clicking on it works, but clicking on a .doc file as an e-mail attachment doesn't work. It launches oo writer, but generates the following oo error message:
/home/user/MyDocs/<9 digit number>/<filename>.doc does not exist
'/home/user/MyDocs' corresponds to 'Nokia N810' in OS2008 terms, but the 9-digit directory doesn't appear to exist. Presumably this is some code internal to Modest.

As an experiment, I cross-referenced .jpg files to Gimp (having defaulted 'image/jpeg' to Dbus-Switchboard). Clicking on a .jpg e-mail attachment duly starts Gimp and opens the file – so far, so good. Now, here's the interesting bit:

I create a new file-type .gob and cross-reference it to Gimp. On my Windows box, I change the extension of a .jpg file to .gob and e-mail it to myself. On the N810, I can 'save' this to a directory and click on it – and Gimp will start and open the file. BUT, if I click on the attachment, Gimp starts but reports the same error as oo writer:
Opening /home/user/MyDocs/<9 digit number>/<filename>.gob failed: No such file or directory
So the problem is not unique to oo writer – and .doc and .gob appear to be treated in the same way. However, .jpg is handed correctly to Gimp. Is it that Modest specially treats .jpg, and helpfully extracts the file and/or passes it over with a proper path; but doesn't extract .doc and .gob and/or produces a rubbish path for them?

The other case I've looked at is .pdf. This I have cross-referenced to Evince (and defaulted 'application/pdf' to Dbus-Switchboard), and this works fine – clicking on .pdf as an attachment or in a directory starts Evince and opens the file. So .pdf may be specially treated by Modest as well.

I wonder how we can disentangle this?