From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83664 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 20:25:24 +0900 Organization: Emacsen advocacy group Message-ID: References: <87wqo439c9.fsf@otago.ac.nz> <87txj4kdxs.fsf@otago.ac.nz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1375701950 21547 80.91.229.3 (5 Aug 2013 11:25:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Aug 2013 11:25:50 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31920=ding+2Daccount=gmane.org@lists.math.uh.edu Mon Aug 05 13:25:48 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 1V6Iv2-0000HE-RC for ding-account@gmane.org; Mon, 05 Aug 2013 13:25:45 +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 1V6Iv1-0001UF-Mo for ding-account@gmane.org; Mon, 05 Aug 2013 06:25:43 -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 1V6Iuy-0001U6-Oo for ding@lists.math.uh.edu; Mon, 05 Aug 2013 06:25:40 -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 1V6Iux-0005yu-BO for ding@lists.math.uh.edu; Mon, 05 Aug 2013 06:25:40 -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 1V6Iuv-0007iC-EZ for ding@gnus.org; Mon, 05 Aug 2013 13:25:37 +0200 Original-Received: from localhost.localdomain ([127.0.0.1]:39569 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80.1) (envelope-from ) id 1V6Iun-003ar5-3A for ding@gnus.org; Mon, 05 Aug 2013 06:25:30 -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:/oZq5EMyJdNE2pPPeM5/Zs8qmQE= 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: -0.5 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83664 Archived-At: --=-=-= john.williams@otago.ac.nz wrote: > But if this is a common problem, perhaps it should be noted in the > Gnus manual, in the section about dealing with MIME parts? I was going to improve Gnus so as to run xdg-open but it slipped my mind someday. But Google taught me today that someone has solved it perfectly: http://i-yt.info/?date=20090829#p01 (Japanese) One says "To make xdg-open work with `start-process', bind `process-connection-type' to nil.". I'll try it on Fedora 19 in home (now I'm in the office and have Cygwin only) later. Before I do it, could someone try the attached patch? Note that this should work for not only xdg-open but also any external programs. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment --- mm-decode.el~ 2013-08-01 22:11:47.000000000 +0000 +++ mm-decode.el 2013-08-05 11:22:29.135609300 +0000 @@ -907,3 +907,4 @@ (let ((command (mm-mailcap-command - method file (mm-handle-type handle)))) + method file (mm-handle-type handle))) + (process-connection-type nil)) (unwind-protect @@ -964,3 +965,3 @@ (unwind-protect - (progn + (let ((process-connection-type nil)) (start-process "*display*" --=-=-=--