Re: problems viewing attachments in emacs ui

Subject: Re: problems viewing attachments in emacs ui

Date: Mon, 29 Jul 2013 08:07:42 -0300

To: Jameson Graef Rollins, Notmuch Mail

Cc:

From: David Bremner


Jameson Graef Rollins <jrollins@finestructure.net> writes:

> I'm now realizing that my problem with html parts is probably that
> browser is attempting to open the temporary file in the background.
> When the browser call returns, the caller assumes the application is
> done with the temp file and purges it.  So for this issue at least I
> need to either convince my browser to not open the file in the
> background, or tell emacs to cleanup temp files at some later time
> (session termination, for instance).

I didn't have time to think through the consequences, but the following
kludge seems to let the browser start:

--- -	2013-07-29 08:05:32.095764025 -0300
+++ ./mm-decode.el	2013-07-28 16:38:49.000000000 -0300
@@ -972,7 +972,7 @@
 		       (lambda (process state)
 			 (when (eq (process-status process) 'exit)
 			   (condition-case nil
-			       (delete-file file)
+			       ;(delete-file file)
 			     (error))
 			   (condition-case nil
 			       (delete-directory (file-name-directory file))

Thread: