From owner-freebsd-ports@FreeBSD.ORG Mon Jun 9 22:50:28 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B379410657E0; Mon, 9 Jun 2008 22:50:28 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from flat.berklix.org (flat.berklix.org [83.236.223.115]) by mx1.freebsd.org (Postfix) with ESMTP id 7DDC28FC19; Mon, 9 Jun 2008 22:50:27 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A7E96.dip.t-dialin.net [84.154.126.150]) (authenticated bits=0) by flat.berklix.org (8.13.8/8.13.8) with ESMTP id m59MoP2W040800; Tue, 10 Jun 2008 00:50:25 +0200 (CEST) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by js.berklix.net (8.13.8/8.13.8) with ESMTP id m59MovbA031302; Tue, 10 Jun 2008 00:50:58 +0200 (CEST) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.13.8/8.13.8) with ESMTP id m59MolUC066306; Tue, 10 Jun 2008 00:50:57 +0200 (CEST) (envelope-from jhs@fire.js.berklix.net) Message-Id: <200806092250.m59MolUC066306@fire.js.berklix.net> To: Stanislav Sedov , freebsd-ports@freebsd.org From: "Julian Stacey" Organization: http://berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://berklix.com In-reply-to: Your message "Fri, 06 Jun 2008 00:22:13 +0200." <200806052222.m55MMDcD073442@fire.js.berklix.net> Date: Tue, 10 Jun 2008 00:50:47 +0200 Sender: jhs@berklix.org Cc: Subject: Re: Enabling GPG Crypt & Key lookup on EXMH 2.7.2 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2008 22:50:28 -0000 Hi ports@, The problem below with GPG Crypt & Exmh is solved: "Julian Stacey" wrote: > Stanislav Sedov wrote: > > "Julian Stacey" mentioned: > > > Hi ports@freebsd.org > > > Does anyone have GPG working with EXMH ? > > > If so I'd be inyerested to know what bits you consider important in > > > ~/.exmh/exmh-defaults > > > /var/db/pkg/ > > > I asked exmh-users@redhat.com, & posted my config there, > > > but no answers overnight, & I suspect this is a FreeBSD config issue. > > > > Post your config here so we can take a look. > > > > Stanislav Sedov > > Thanks, here below: > BTW > I only the problem encrypting is with EXMH-2.7.2 on my amd64 6.2-rel, > decrypting is OK now I have installed security/quintuple-agent for q-client > > On my 7.0-rel i386 I can use the same gpg keys to encode with mail/claws-mail, > & can also manually gpg encrypt. The solution was worked out on another list, here's a posting: ----- To: Discussion list for EXMH users Subject: Re: Enabling GPG Crypt & Key lookup on EXMH 2.7.2 From: "Julian Stacey" Valdis.Kletnieks@vt.edu wrote: > > On Mon, 09 Jun 2008 23:28:32 +0200, Julian Stacey said: > > > Thanks both, I've got it working now. > > Well, nearly, with the exception that I have to keep typing passphrase. > > q-client is manually running, & I exported the env before calling exmh, > > & q-client is callable, but but "q-client list" show empty. > > That's probably at least partially due to the fact that the last time I touched > the PGP code (and I think I was the last to do so), I'm running exmh-2.7.2 on FreeBSD-6.2 > q-client didn't exist yet. After cd /usr/ports/mail/exmh2 ; make extract ie at architercture neutral level before any customising for FreeBSD specific as in 'make patch' called by macros of 'make all' There are just 2 q-client strings: lib/extrasInit.tcl: {pgp(getextcmd) pgpGetExtCmd {/usr/bin/q-client get %s} {Method to query external passphrase cache} lib/extrasInit.tcl: {pgp(delextcmd) pgpDelExtCmd {/usr/bin/q-client delete %s} {Method to invalidate external passphrase cache} & no more q-client dtrings after make patch. I would guess Exmh is missing some "q-client put" calls to load the socket the first time the passphrase is typed in gor gpg -d ? > Look under 'preferences' / 'General PGP Interface' - is the 'Keep PGP > passphrase' button what you're looking for? Harvey Eneman wrote: > I think you need to set your pgpKeepPass to 1. Thanks, Yes I'd tried that before, but it had locked up, When I changed pgpKeepPass to 1, & then clicked in body on " Decrypt and verify with GnuPG" the display reduced from: This is a GnuPG signed and encrypted message Decrypt and verify with GnuPG This is a application/pgp It might be displayable with metamail. (Invoke menu with right button.) charset = US-ASCII format = text To just: PGP execution produced no messages. Now I realise the code needs extending to use eg "q-client put", I must abandon external till then, so I have also set Use external passphrase cache Off. & now all works. Valdis, If you fancy adding some TCL to call q-client put to load the values sometime, I can be a tester (though busy next few days). Thanks all for you advice. (BTW off topic I believe gpg-agent worked with claws-mail to load passphrases, but I got stuck with other problems there, so reverted to exmh :-) Julian -- Julian Stacey: BSDUnixLinux C Prog Admin SysEng Consult Munich www .berklix.com Mail just Ascii plain text. HTML & Base64 text are spam.