problems viewing attachments in emacs ui

Jameson Graef Rollins jrollins at finestructure.net
Sun Jul 28 09:41:57 PDT 2013


Hey, folks.  I've been experiencing a very annoying and persistent
problem of late where the emacs ui is unable to pass message parts to
external viewers.  Whenever I try to open an attachment or inline part
in an external viewer, the helper application is launched, but it
appears to never be able to find the temporary file.

For instance, if I launch notmuch-show-view-part on an html part, my
browser opens pointed at e.g. the following file:

  file:///home/jrollins/tmp/emm.610040w/mm.6100F_2.htm

But the browser shows the following error:

  File not found
  Iceweasel can't find the file at /home/jrollins/tmp/emm.610040w/mm.6100F_2.htm.

And sure enough, the file is not there.  html parts are definitely the
worst, since they seem to never be copied to their temporary file paths
at all, but it happens with pretty much all other part types as well,
although with slightly different behavior: e.g. image and pdf parts will
open in external viewers BRIEFLY, before the temporary file appears to
be yanked out from under them as well (at which point, depending on the
app, they complain that the file is no longer there they stop displaying
it).  I've even tried creating my own part handler to capture the temp
file immediately into *another* tempfile, in the hopes of catching it,
but that doesn't seem to help either.

This is obviously quite frustrating, since I have to view attachments
outside of emacs quite frequently.  I think I've heard speculation on
IRC that this is an emacs24 bug.  I'm kind of at a loss at this point
for how to get around the issue.  Any help would be very much
appreciated!

jamie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20130728/1df5b01c/attachment.pgp>


More information about the notmuch mailing list