gpg run from .procmailrc can't find secret keyring

David Shaw dshaw@jabberwocky.com
Fri Oct 11 02:55:02 2002


On Thu, Oct 10, 2002 at 08:50:40PM -0400, Joseph Shraibman wrote:
> Peter T. Abplanalp wrote:
> >* On Thu, Oct 10, 2002 at 05:34:12PM -0400, Joseph Shraibman wrote:
> >
> >>I'm running:
> >>gpg (GnuPG) 1.0.7
> >>
> >>
> >>I set up a script to be called from my .procmailrc to decrypt incoming 
> >>pgp mail, but it doesn't work. I put in my script to call gpg 
> >>--list-secret-keys and here is the output:
> >>gpg: Warning: using insecure memory!
> >>gpg: [don't know]: invalid packet (ctb=00)
> >>gpg: read_keyblock: read error: invalid packet
> >>gpg: enum_keyblocks(read) failed: invalid keyring
> >
> >
> >i suspect the script is not run as your user id.
> >
> It is. I checked. The output of id is the same as the command line, the 
> $HOME variable is the same too.

Could you possibly have more than one copy of gpg installed?  What
happens if you do gpg --version in your procmail script?

David

-- 
   David Shaw  |  dshaw@jabberwocky.com  |  WWW http://www.jabberwocky.com/
+---------------------------------------------------------------------------+
   "There are two major products that come out of Berkeley: LSD and UNIX.
      We don't believe this to be a coincidence." - Jeremy S. Anderson