Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
Cc: Ding Mailing List <ding@gnus.org>
Subject: Re: encrypt.el and pgp argument...
Date: Tue, 03 Apr 2007 12:57:56 -0400	[thread overview]
Message-ID: <m2hcrx8kff.fsf@lifelogs.com> (raw)
In-Reply-To: <yxdi4pocmm8s.fsf@merisier.inrialpes.fr> (Bruno Marmol's message of "Fri\, 23 Mar 2007 08\:50\:59 +0100")

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 <Bruno.Marmol@inrialpes.fr> 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



           reply	other threads:[~2007-04-03 16:57 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <yxdi4pocmm8s.fsf@merisier.inrialpes.fr>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2hcrx8kff.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).