From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.bugs Subject: bug#12923: 24.2; epa-file--find-file-not-found-function: Opening input file: Can't decrypt, Exit Date: Wed, 21 Nov 2012 06:49:46 +0900 Message-ID: <87lidw54hx.fsf-ueno@unixuser.org> References: <87haon10zw.fsf@gavenkoa.example.com> <878v9w6t69.fsf@gavenkoa.example.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1353448255 10733 80.91.229.3 (20 Nov 2012 21:50:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Nov 2012 21:50:55 +0000 (UTC) Cc: 12923@debbugs.gnu.org To: Oleksandr Gavenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 20 22:51:06 2012 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 1Tavij-0004XC-SZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Nov 2012 22:51:05 +0100 Original-Received: from localhost ([::1]:44432 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaviZ-0004IL-K9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Nov 2012 16:50:55 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaviW-0004Hh-OA for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2012 16:50:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaviV-0000nh-Je for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2012 16:50:52 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaviV-0000nd-Bw for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2012 16:50:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tavje-0005Nl-6R for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2012 16:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daiki Ueno Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Nov 2012 21:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12923 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12923-submit@debbugs.gnu.org id=B12923.135344826320622 (code B ref 12923); Tue, 20 Nov 2012 21:52:02 +0000 Original-Received: (at 12923) by debbugs.gnu.org; 20 Nov 2012 21:51:03 +0000 Original-Received: from localhost ([127.0.0.1]:57476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tavih-0005MY-5W for submit@debbugs.gnu.org; Tue, 20 Nov 2012 16:51:03 -0500 Original-Received: from du-a.org ([219.94.251.20]:57393 helo=www6246ue.sakura.ne.jp) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tavie-0005M9-A0 for 12923@debbugs.gnu.org; Tue, 20 Nov 2012 16:51:02 -0500 In-Reply-To: <878v9w6t69.fsf@gavenkoa.example.com> (Oleksandr Gavenko's message of "Tue, 20 Nov 2012 20:11:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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:67253 Archived-At: Oleksandr Gavenko writes: > So Emacs break some usual convention used by gpg about .gpg extension... > > $ file /home/user/.gnupg/pubring.gpg > /home/user/.gnupg/pubring.gpg: GPG key public ring Oh, I didn't know that the file command defines such a magic: # GnuPG # The format is very similar to pgp 0 string \001gpg GPG key trust database >4 byte x version %d # Note: magic.mime had 0x8501 for the next line instead of 0x8502 0 beshort 0x8502 GPG encrypted data !:mime text/PGP # encoding: data # This magic is not particularly good, as the keyrings don't have true # magic. Nevertheless, it covers many keyrings. 0 beshort 0x9901 GPG key public ring !:mime application/x-gnupg-keyring > I expect that Emacs open this file in any case (ever if it doesn't support > some "standard" .gpg format - open it literary as fall back!). The rationale of the current behavior (try decryption only) was that a .gpg file may contain GPG packets which can have any type of GPG data (encrypted, signed, public keys, ...) in theory. If the above magic works well for typical use-cases, it might be worth adding them to Emacs too. Regards, -- Daiki Ueno