From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) Newsgroups: gmane.emacs.bugs Subject: bug#21331: mailcap (was Re: bug#21331: 24.5; LibreOffice documents have less support...) Date: Wed, 26 Aug 2015 14:34:58 -0300 Message-ID: <87io820x8d.fsf_-_@moondust.localdomain> References: <87k2slhpj0.fsf@moondust.localdomain> <87wpwiwbg0.fsf@md5i.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1440610594 24302 80.91.229.3 (26 Aug 2015 17:36:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Aug 2015 17:36:34 +0000 (UTC) Cc: Michael Welsh Duggan , Richard Stallman , 21331@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 26 19:36:19 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZUecO-0007cz-7A for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Aug 2015 19:36:12 +0200 Original-Received: from localhost ([::1]:39581 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUecN-0004NX-8G for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Aug 2015 13:36:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUecI-0004Jk-Dr for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 13:36:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUecE-00029d-4z for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 13:36:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUecE-00029X-2R for bug-gnu-emacs@gnu.org; Wed, 26 Aug 2015 13:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZUecD-00050l-K6; Wed, 26 Aug 2015 13:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: nljlistbox2@gmail.com (N. Jackson) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 26 Aug 2015 17:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21331 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: notabug Original-Received: via spool by 21331-submit@debbugs.gnu.org id=B21331.144061050319186 (code B ref 21331); Wed, 26 Aug 2015 17:36:01 +0000 Original-Received: (at 21331) by debbugs.gnu.org; 26 Aug 2015 17:35:03 +0000 Original-Received: from localhost ([127.0.0.1]:39089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUebG-0004zH-D8 for submit@debbugs.gnu.org; Wed, 26 Aug 2015 13:35:02 -0400 Original-Received: from mail-io0-f169.google.com ([209.85.223.169]:35048) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZUebE-0004yv-Ta for 21331@debbugs.gnu.org; Wed, 26 Aug 2015 13:35:01 -0400 Original-Received: by iodt126 with SMTP id t126so27794842iod.2 for <21331@debbugs.gnu.org>; Wed, 26 Aug 2015 10:35:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=/TCA2sN0PUbIAH9TPfZpXVfaATyBnDb/FFGwkSFZB8Q=; b=B9O1J2xjBelHxUABgz/CS0UA9UiZe0MiKy80JnbGpKSbaPoSEZQTye8/vsTPOqyqF8 6PG0gOSvHQctpwPOsPGGmCj5m6nDTpPwDa0NuF7TNxEow8a4zZhII3BQa16J9gDgYhDN 8K87b5+qdUfCuflN72fwMC6qHUmJqiI4rU1mxvVsHlGNBbl1f2PqKbvXZkibToDfKwvl AZnVxzt2XtLh1caGA7p+6JPK0Fgf2gnc4SYcjTwEvSKQOhCJvbmr2ISROV0h165TAe0a b09meYU8JXb+HxMm9HYRY9VYQgvua8HeOEJ3LcOc6Svi+FTeoi1ziNX7ChziMGcf7Uog wslg== X-Received: by 10.107.15.194 with SMTP id 63mr6220269iop.44.1440610500275; Wed, 26 Aug 2015 10:35:00 -0700 (PDT) Original-Received: from moondust.localdomain.nodomain.none (hlfxns0163w-142177116031.pppoe-dynamic.High-Speed.ns.bellaliant.net. [142.177.116.31]) by smtp.gmail.com with ESMTPSA id 3sm4117135igy.10.2015.08.26.10.34.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Aug 2015 10:34:59 -0700 (PDT) In-Reply-To: (Glenn Morris's message of "Wed, 26 Aug 2015 12:19:18 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105848 Archived-At: I apologise profusely for causing this disturbance with a bug title that turns out to have been a result of user misunderstanding. As pointed out when I closed the bug, this is not an Emacs bug. Through a mechanism of which I do not know the details, Gnus can open mail attachments in an external program if there is an entry for the MIME type of the attachment in the system (or user's?) mailcap file. I happened to have an entry for the MIME type "application/msword" in my mailcap file and no entries for LibreOffice files, causing the behaviour I observed and misinterpreted as being "caused" by Emacs. At 13:19 -0300 on Wednesday 2015-08-26, Glenn Morris wrote: > I really doubt any GNU/Linux distribution has better support for MS > Office in this area (a program they cannot ship or even install, > ignoring Wine) then LibreOffice (which they do ship). Checking this today, I deleted my mailcap file and reinstalled the mailcap package from the Fedora 21 repository. The newly installed file is: ### ### Begin Red Hat Mailcap ### audio/*; /usr/bin/xdg-open %s image/*; /usr/bin/xdg-open %s application/msword; /usr/bin/xdg-open %s application/pdf; /usr/bin/xdg-open %s application/postscript ; /usr/bin/xdg-open %s text/html; /usr/bin/xdg-open %s ; copiousoutput I'm guessing that the entry for msword has been added automatically based on some configuration I've inadvertently made somewhere else (probably as a desperate measure when I first switched permanently away from Windows and needed to view a file from work). But the possibility exists that this entry came from the distribution. That would mean that for programs that use mailcap rather than desktop facilities (xdg-utils or whatever), there is better support on Fedora for Microsoft Word files (which will open in LibreOffice) than for LibreOffice documents. But I too really doubt that. It worries me though, so I will probably go on investigating until I find the truth of the matter. But not an Emacs problem. > So on modern systems probably Emacs should give up and just call > xdg-open. That would be nice. > (Though I seem to recall it's a pain because it forks and seems to > exit.) Presumably Gnus successfully uses xdg-open after it finds the xdg-open entries in my mailcap file, so this problem can't be insurmountable, it seems.