From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83707 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: MIME parts not saved Date: Mon, 12 Aug 2013 11:38:35 +0900 Organization: Emacsen advocacy group Message-ID: References: <87wqo439c9.fsf@otago.ac.nz> <87txj4kdxs.fsf@otago.ac.nz> <87mwotshqt.fsf@uwo.ca> <8761vexxgv.fsf@uwo.ca> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1376275208 12039 80.91.229.3 (12 Aug 2013 02:40:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Aug 2013 02:40:08 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31963@lists.math.uh.edu Mon Aug 12 04:40:09 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V8i3D-0007Pm-FW for ding-account@gmane.org; Mon, 12 Aug 2013 04:40:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1V8i1z-0006Nv-EE; Sun, 11 Aug 2013 21:38:51 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1V8i1x-0006Ne-KO for ding@lists.math.uh.edu; Sun, 11 Aug 2013 21:38:49 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1V8i1w-0000L6-O0 for ding@lists.math.uh.edu; Sun, 11 Aug 2013 21:38:49 -0500 Original-Received: from mail-hampton.hostforweb.net ([216.246.15.223] helo=hampton.hostforweb.net) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1V8i1v-0005uQ-8w for ding@gnus.org; Mon, 12 Aug 2013 04:38:47 +0200 Original-Received: from localhost.localdomain ([127.0.0.1]:40754 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80.1) (envelope-from ) id 1V8i1n-000Fxj-JQ for ding@gnus.org; Sun, 11 Aug 2013 21:38:40 -0500 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130008 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.8) Emacs/24.3.50 (i686-pc-cygwin) Cancel-Lock: sha1:szUm4tHaBHBl2LZQX53zLn9KEk8= X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: root X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83707 Archived-At: Dan Christensen wrote: > Katsumi Yamaoka writes: >>> Instead, how about deleting temporary files at the next time >>> Gnus starts? That is: >> >>> o Save a list of files to be deleted in "$TMP/.mm-temp-files" when >>> Gnus exits. >>> o Try to delete those files when Gnus starts. If it fails on >>> deleting of some files, schedule them to delete again. >> >>> This way will be helpful also for Emacs on Windows and Cygwin. >> >> I've installed this. Now it tries to delete temporary files when >> exiting Gnus. > Sounds great! Does this also apply for the files opened using > mm-display-external? Yes, it does, for the case the mailcap entry specifies neither `needsterm' nor `copiousoutput'. In that case, now it tries to delete temporary files one minutes after launching a viewer and when Gnus exits[1]. As for the `copiousoutput' case, temp files will be deleted after a viewer exits. However, as for the `needsterm' case, there's no code for the temp files deletion as it was as before. I'm going to verify whether it's ok. [1] The deletion will fail on Windows or Cygwin if a viewer is a Windows application, MS Office, AcroRd, etc. for example, and is running at that time.