From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83653 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: MIME parts not saved Date: Mon, 05 Aug 2013 09:54:17 +0900 Organization: Emacsen advocacy group Message-ID: References: <87wqo439c9.fsf@otago.ac.nz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1375664161 20410 80.91.229.3 (5 Aug 2013 00:56:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Aug 2013 00:56:01 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31909@lists.math.uh.edu Mon Aug 05 02:56:03 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 1V695d-0004Zb-BQ for ding-account@gmane.org; Mon, 05 Aug 2013 02:56:01 +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 1V694H-0006wL-Gb; Sun, 04 Aug 2013 19:54:37 -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 1V694E-0006w6-J0 for ding@lists.math.uh.edu; Sun, 04 Aug 2013 19:54:34 -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 1V694C-0003hp-Dw for ding@lists.math.uh.edu; Sun, 04 Aug 2013 19:54:33 -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 1V694A-0001Og-Ob for ding@gnus.org; Mon, 05 Aug 2013 02:54:30 +0200 Original-Received: from localhost.localdomain ([127.0.0.1]:45448 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80.1) (envelope-from ) id 1V6943-00411m-7r for ding@gnus.org; Sun, 04 Aug 2013 19:54:24 -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:mR+DuxL7r5zBfSsygrFcKQmGUiU= 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:83653 Archived-At: john.williams@otago.ac.nz wrote: > When I try to view an attachement in an email message (a MS Word > document or PDF, for example), Gnus helpfully tells me that xdg-open is > opening /tmp/mm* . But nothing ever happens. In a sepratate terminal > window I say ls /tmp/mm*, but there are no files of that pattern. For viewing, those are temporary files and will be deleted after passing them to a viewer. I had the same problem about xdg-open and brought it up here years ago: http://thread.gmane.org/gmane.emacs.gnus.general/68353 The solution I took then was to remove xdg-open from the mailcap database, as described in the article. You may want to add the entries to the database[1] for the pairs of the content-types and the viewers if Fedora doesn't provide them in the system mailcap database. To know what entries there are, do `M-x load-library RET mailcap RET' and `C-h v mailcap-mime-data RET'. [1] An easy way is to have the ~/.mailcap file with the entries like the following: application/pdf; /usr/bin/acroread %s application/msword; /usr/bin/ooffice %s Note that whenever you edited the file you have to do `M-x mailcap-parse-mailcaps RET', or restart Emacs and Gnus. > So then I try to save the part locally, am prompted for a location and > save the file. Great! The file is created. Except that when I go to > open it, I find that it is empty, i.e. 0 bytes. I don't know. Is it always empty for any attachment? > I have no clue how to start debugging this. What infomation shouldl I > provide to anyone who would like to help me? My whole .emacs and/or > .gnus.el? As for the case an empty file is saved, forward an example mail to me if possible. > Ma Gnus v0.17, Emacs 24.3.50.1 on Fedora 19. Is any other information > relevant?