From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83700 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: MIME parts not saved Date: Fri, 09 Aug 2013 17:06:16 +0900 Organization: Emacsen advocacy group Message-ID: References: <87wqo439c9.fsf@otago.ac.nz> <87txj4kdxs.fsf@otago.ac.nz> <87mwotshqt.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 1376035684 19177 80.91.229.3 (9 Aug 2013 08:08:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Aug 2013 08:08:04 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31956@lists.math.uh.edu Fri Aug 09 10:08:06 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 1V7hjx-0001t5-O1 for ding-account@gmane.org; Fri, 09 Aug 2013 10:08:06 +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 1V7hiS-0008KM-7I; Fri, 09 Aug 2013 03:06:32 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1V7hiQ-0008KC-N2 for ding@lists.math.uh.edu; Fri, 09 Aug 2013 03:06:30 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1V7hiP-0000W3-8Z for ding@lists.math.uh.edu; Fri, 09 Aug 2013 03:06:30 -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 1V7hiN-0003mE-LU for ding@gnus.org; Fri, 09 Aug 2013 10:06:27 +0200 Original-Received: from localhost.localdomain ([127.0.0.1]:33100 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80.1) (envelope-from ) id 1V7hiF-0032rV-K9 for ding@gnus.org; Fri, 09 Aug 2013 03:06:20 -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:SNhTVByBIWkr0ZfK3JOJWne2piI= 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:83700 Archived-At: Katsumi Yamaoka wrote: > 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. If it fails for a reason something like that a viewer is still running and catching hold of a file, it schedules the files left to be deleted at the next time Gnus exits (not Gnus starts). The file that holds a list of temporary files to be deleted next time is "$TMP/.mm-temp-files-UserName" (mode 0600). The deletion is done by `gnus-exit-gnus-hook'.