Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D82ED431FC0 for ; Mon, 29 Jul 2013 04:07:57 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nJFsal8yB3Kw for ; Mon, 29 Jul 2013 04:07:50 -0700 (PDT) Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 0152F431FBF for ; Mon, 29 Jul 2013 04:07:49 -0700 (PDT) Received: from remotemail by yantan.tethera.net with local (Exim 4.80) (envelope-from ) id 1V3lIo-0005Li-J2; Mon, 29 Jul 2013 08:07:46 -0300 Received: (nullmailer pid 27886 invoked by uid 1000); Mon, 29 Jul 2013 11:07:42 -0000 From: David Bremner To: Jameson Graef Rollins , Notmuch Mail Subject: Re: problems viewing attachments in emacs ui In-Reply-To: <87ehai4ns3.fsf@servo.finestructure.net> References: <87hafe4ox6.fsf@servo.finestructure.net> <87ehai4ns3.fsf@servo.finestructure.net> User-Agent: Notmuch/0.16 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) Date: Mon, 29 Jul 2013 08:07:42 -0300 Message-ID: <87ob9lipz5.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jul 2013 11:07:58 -0000 Jameson Graef Rollins 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))