Re: pgp subprocess

2001-10-25 Thread Ken Weingold

This is why I thought it odd that Suresh's PGP-signed email wouldn't
show up.  His is the only one like that for me.  This is Ricardo's email from
just today, how all of them come out:


[-- PGP output follows (current time: Thu Oct 25 21:01:42 2001) --] 
[-- End of PGP output --]

[-- The following data is signed --]

YACQ:

I'd really like to colorize my indicator.  I no longer use %Z in my
index_format, and use index coloring to pass along the flag-info I care about.
Unfortunately, that means that I can't tell what's up with the message
currently under the indicator.  Any hints on using patterns to hilight the
indicator somehow?

--
rjbs

[-- End of signed data --]



Can't open PGP subprocess!

2002-09-06 Thread Frederick Grim

Howdy all,

I am using mutt to acess an IMAP mailbox on a remote machine through a
ssh tunnel.  However every time I try to sign my mail I get

Can't open PGP subprocess!: No such file or directory (errno = 2)

I am not sure why this is happening.  Both the server and the client
have gpg.  I can sign and encrypt documents on the client I just cannot
do it in my imap mailbox.  Thanks for the time.

Fred

-- 
ebitda: earnings before interest, tax, depreciation and accountants

For a copy of my pgp public ket visit
URL: http://norby.dyndns.org:8080



PGP5 - Can't open PGP subprocess!

2001-06-14 Thread Richard B Mahoney

Dear Readers,

I am setting up pgp5 for the first time. Everything seems to be
fine accept one thing. When the time comes to send a message
then I get this message on the status line:

  Can't open PGP subprocess!: No such file or directory\
   (errno = 2)
 
Does anyone know what this might suggest and how to resolve it?

Any suggestions would be gratefully received.


Many regards,

 Richard Mahoney

-- 
/"\ --- Richard B Mahoney ---
\ / ASCII78 Jeffreys Rd+64-3-351-5831
 X  Ribbon Campaign   ChristchurchNew Zealand
/ \ --- mailto:[EMAIL PROTECTED] ---
  ++ http://www.freebsd.org/ ++



Re: Can't open PGP subprocess!

2002-09-06 Thread Sven Guckes

* Frederick Grim <[EMAIL PROTECTED]> [2002-09-06 09:19]:
> I am using mutt to acess an IMAP mailbox on a remote machine through a
> ssh tunnel.  However every time I try to sign my mail I get
>    Can't open PGP subprocess!: No such file or directory (errno = 2)
> I am not sure why this is happening.
> Both the server and the client have gpg.
> I can sign and encrypt documents on the client
> I just cannot do it in my imap mailbox.

that's probably because the *local* pgp
cannot check a *remote* message?
sign and encryption takes place at the
local machine on a local message.

Sven  [still not using IMAP]



Re: PGP5 - Can't open PGP subprocess!

2001-06-15 Thread Gaurav Priyolkar

On Fri, Jun 15, 2001 at 09:17:17AM +1200, Richard B Mahoney wrote:
>   Can't open PGP subprocess!: No such file or directory\
>(errno = 2)

You have to copy:
/usr/doc/mutt-1.2.5i/samples/pgp5.rc 
to your home directory and source it from your muttrc.

-Gaurav

-- 
Sleep:  A completely inadequate substitute for caffeine.



Can't open PGP subprocess!: No such file or directory (errno = 2)

2002-09-05 Thread Frederick Grim

Howdy all,

I have a question.  I am using mutt to read email on an imap server.
This is being done through a ssh tunnel.  My question is as follows:
whenever I try to sign anything with my gpg key I get the following error

Can't open PGP subprocess!: No such file or directory (errno = 2)

Why is that?  The relevant lines from my .muttrc are

set pgp_autosign=yes
set pgp_sign_as=D56C5DBF
set pgp_timeout=600

set sort=threads
set beep_new=yes
set realname="Frederick Grim"
set editor=vim
set imap_user=
set imap_pass=
set preconnect="ssh -f -q -l  -L 1430:10.0.0.3:143 10.0.0.3 sleep
5"  
set folder=imap://localhost:1430/ 
set spoolfile=imap://localhost:1430/INBOX 

I can connect (usernames and passwords excluded to protect the innocent)
to the server and send mail out fine.  So what am I missing.  Gpg is
installed on both the server and the client machines.

I appreciate the time

Fred


-- 
ebitda: earnings before interest, tax, depreciation and accountants

For a copy of my pgp public ket visit
URL: http://norby.dyndns.org:8080



Re: pgp subprocess (was "Re: switch from maildir format back to mbox")

2001-10-24 Thread David T-G

...and then Ken Weingold said...
% Why is it that in the mutt pager, all I saw from Suresh's email was:
% 
% [-- Error: unable to create PGP subprocess! --]
% -END PGP SIGNATURE-

Probably because mutt couldn't create a PGP subprocess ;-)

Are you out of swap space or memory?  Has pgp/gpg moved?  Can you read
this email or did you have to pipe it through cat to see the text?


% 
% 
% I can see the text from the attachment menu and in my editor in a
% reply, but not in the pager.

That's because there's no need to run PGP for the signature when you're
loading a reply (unlike, of course, the necessary decryption of an
encrypted message).


% 
% Thanks.

HTH & HAND


% 
% 
% -Ken


:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!


 PGP signature


Re: pgp subprocess (was "Re: switch from maildir format back to mbox")

2001-10-24 Thread Ken Weingold

On Wed, Oct 24, 2001, David T-G wrote:
> ...and then Ken Weingold said...
> % Why is it that in the mutt pager, all I saw from Suresh's email was:
> % 
> % [-- Error: unable to create PGP subprocess! --]
> % -END PGP SIGNATURE-
> 
> Probably because mutt couldn't create a PGP subprocess ;-)
> 
> Are you out of swap space or memory?  Has pgp/gpg moved?  Can you read
> this email or did you have to pipe it through cat to see the text?

No problem with memory or swap, or other messages for that matter.
Just that one.  And no, I don't even have pgp/gpg installed (yet).
But other messages display fine.


-Ken



Re: pgp subprocess (was "Re: switch from maildir format back to mbox")

2001-10-24 Thread Daniel Eisenbud

On Wed, Oct 24, 2001 at 11:09:55AM -0400, David T-G 
<[EMAIL PROTECTED]> wrote:
> ...and then Ken Weingold said...
> % Why is it that in the mutt pager, all I saw from Suresh's email was:
> % 
> % [-- Error: unable to create PGP subprocess! --]
> % -END PGP SIGNATURE-
> 
> Probably because mutt couldn't create a PGP subprocess ;-)

Regardless of why mutt couldn't create a PGP subprocess (in this case,
as it turns out, because PGP isn't installed) it is arguably a bug that
it doesn't display the message body in the pager.  Clearly it should
show a big message at the top saying that PGP verification failed, but I
think that then it should display the message.

-Daniel

-- 
Daniel E. Eisenbud
[EMAIL PROTECTED]

"We should go forth on the shortest walk perchance, in the spirit of
undying adventure, never to return,--prepared to send back our embalmed
hearts only as relics to our desolate kingdoms."
--Henry David Thoreau, "Walking"



PATCH Re: pgp subprocess (was "Re: switch from maildir format back to mbox")

2001-10-25 Thread Thomas Roessler

On 2001-10-24 21:45:02 -0400, Daniel Eisenbud wrote:

>Regardless of why mutt couldn't create a PGP subprocess (in this 
>case, as it turns out, because PGP isn't installed) it is arguably 
>a bug that it doesn't display the message body in the pager. 
>Clearly it should show a big message at the top saying that PGP 
>verification failed, but I think that then it should display the 
>message.

This is indeed clearly a bug.

-- 
Thomas Roesslerhttp://log.does-not-exist.org/


Index: pgp.c
===
RCS file: /home/roessler/cvsroot/mutt/pgp.c,v
retrieving revision 2.41
diff -u -r2.41 pgp.c
--- pgp.c   2001/07/03 12:17:31 2.41
+++ pgp.c   2001/10/25 07:48:26
@@ -265,7 +265,7 @@
   char buf[HUGE_STRING];
   char outfile[_POSIX_PATH_MAX];
   char tmpfname[_POSIX_PATH_MAX];
-  FILE *pgpout = NULL, *pgpin, *pgperr;
+  FILE *pgpout = NULL, *pgpin = NULL, *pgperr = NULL;
   FILE *tmpfp;
   pid_t thepid;
 
@@ -296,7 +296,7 @@
clearsign = 1;
 needpass = 0;
   }
-  else if (!option(OPTDONTHANDLEPGPKEYS) &&
+  else if (!option (OPTDONTHANDLEPGPKEYS) &&
   mutt_strcmp ("PUBLIC KEY BLOCK-\n", buf + 15) == 0) 
   {
 needpass = 0;
@@ -355,44 +355,50 @@
  -1, tmpfname, 
  needpass)) == -1)
{
- fclose (pgpout); pgpout = NULL;
- mutt_unlink(tmpfname);
+ safe_fclose (&pgpout);
+ mutt_unlink (tmpfname);
+
+ maybe_goodsig = 0;
+
+ pgpin = NULL;
+ pgperr = NULL;
+     
  state_puts (_("[-- Error: unable to create PGP subprocess! --]\n"), s);
- state_puts (buf, s);
- continue;
}
-   
-   if (needpass)
+   else
{
-   if (!pgp_valid_passphrase ())
-   pgp_void_passphrase ();
- fputs (PgpPass, pgpin);
- fputc ('\n', pgpin);
-   }
-
-   safe_fclose (&pgpin);
-   
-   if (s->flags & M_DISPLAY)
- pgp_current_time (s);
-   
-   rv = mutt_wait_filter (thepid);
-
-   mutt_unlink (tmpfname);
+ if (needpass)
+ {
+   if (!pgp_valid_passphrase ())
+ pgp_void_passphrase ();
+   fputs (PgpPass, pgpin);
+   fputc ('\n', pgpin);
+ }
+ 
+ safe_fclose (&pgpin);
+ 
+ if (s->flags & M_DISPLAY)
+   pgp_current_time (s);
+ 
+ rv = mutt_wait_filter (thepid);
+ 
+ mutt_unlink (tmpfname);

-   if (s->flags & M_DISPLAY)
-   {
- rc = pgp_copy_checksig (pgperr, s->fpout);
+ if (s->flags & M_DISPLAY)
+ {
+   rc = pgp_copy_checksig (pgperr, s->fpout);
+   
+   if (rc == 0)
+ have_any_sigs = 1;
+   if (rc || rv)
+ maybe_goodsig = 0;
+ }
+ 
+ safe_fclose (&pgperr);
  
- if (rc == 0)
-   have_any_sigs = 1;
- if (rc || rv)
-   maybe_goodsig = 0;
+ if (s->flags & M_DISPLAY)
+   state_puts (_("\n[-- End of PGP output --]\n\n"), s);
}
-
-   safe_fclose (&pgperr);
-
-   if (s->flags & M_DISPLAY)
- state_puts (_("\n[-- End of PGP output --]\n\n"), s);
   }
 
   if(s->flags & M_DISPLAY)
@@ -407,7 +413,7 @@
 
   /* Use PGP's output if there was no clearsig signature. */
   
-  if(!clearsign)
+  if(!clearsign && pgpout)
   {
fflush (pgpout);
rewind (pgpout);
@@ -432,9 +438,9 @@
 
   /* decode clearsign stuff */
   
-  if(clearsign)
+  if (clearsign)
   {
-   fseek(s->fpin, start_pos, SEEK_SET);
+   fseek (s->fpin, start_pos, SEEK_SET);
bytes   += (last_pos - start_pos);
bytes= pgp_copy_clearsigned (s, bytes);
last_pos = ftell (s->fpin);

 PGP signature