From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/64487 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: encrypt.el and pgp argument... Date: Tue, 03 Apr 2007 12:57:56 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175619605 6813 80.91.229.12 (3 Apr 2007 17:00:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 Apr 2007 17:00:05 +0000 (UTC) Cc: Ding Mailing List Original-X-From: ding-owner+M12999@lists.math.uh.edu Tue Apr 03 18:59:49 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1HYmMC-0002SL-Kv for ding-account@gmane.org; Tue, 03 Apr 2007 18:59:44 +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 1HYmL8-0006wT-FV; Tue, 03 Apr 2007 11:58:38 -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 1HYmL6-0006w6-AF for ding@lists.math.uh.edu; Tue, 03 Apr 2007 11:58:36 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1HYmL5-0006ky-8q for ding@lists.math.uh.edu; Tue, 03 Apr 2007 11:58:36 -0500 Original-Received: from firewall.getconnected.com ([207.31.238.50] helo=athena.getconnectedinc.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1HYmL2-0004zK-00 for ; Tue, 03 Apr 2007 18:58:32 +0200 Original-Received: from teodor-zlatanovs-computer.local ([172.26.101.76]) by athena.getconnectedinc.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 3 Apr 2007 12:58:34 -0400 Original-Newsgroups: gnus.gnus-bug X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.96 (darwin) Cancel-Lock: sha1:UCzWdbeH7TYgqBOEJqazHsQXN6I= Mail-Followup-To: Ding Mailing List In-Reply-To: (Bruno Marmol's message of "Fri\, 23 Mar 2007 08\:50\:59 +0100") Posted-To: gnus.gnus-bug X-OriginalArrivalTime: 03 Apr 2007 16:58:34.0033 (UTC) FILETIME=[507E6210:01C77611] X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:64487 Archived-At: The following message is a courtesy copy of an article that has been posted to gnus.gnus-bug as well. On Fri, 23 Mar 2007 08:50:59 +0100 Bruno Marmol wrote: BM> When we use the --passphrase-fd argument, it seems that pgp needs to have the --batch BM> argument. BM> So encrypt-gpg-process-buffer BM> (defun encrypt-gpg-process-buffer (passphrase BM> cipher BM> &optional encode) BM> "With PASSPHRASE, use GPG to encode or decode the current buffer." BM> (let* ((program encrypt-gpg-path) BM> (input (buffer-substring-no-properties (point-min) (point-max))) BM> (temp-maker (if (fboundp 'make-temp-file) BM> 'make-temp-file BM> 'make-temp-name)) BM> (temp-file (funcall temp-maker encrypt-temp-prefix)) BM> (default-enable-multibyte-characters nil) BM> (args `("--cipher-algo" ,cipher BM> "--status-fd" "2" BM> "--logger-fd" "2" BM> "--batch" ; <<<======= Add this arg here or other method to add (for correct portability) BM> "--passphrase-fd" "0" BM> "--no-tty")) BM> exit-status exit-data) Thank you, Bruno. So the syntax is different in GPG and PGP. Wouldn't it be better to have a separate encrypt-pgp-process-buffer function? They may be similar (and I will abstract what I can), but I don't want to add extra parameters to the GPG function for PGP functionality. I only use GPG so I'm looking for opinions... Ted