Re: exmh and gnupg
Brent Welch <[email protected]>
| Newsgroups | gmane.mail.exmh.devel |
|---|---|
| Message-ID | <[email protected]> |
I'm not a big expert on exmh/pgp integration, but I will see what I
can do to help - I'm also cc'ing exmh-workers. If you have the
"gpg" program on your PATH, and a keyring, then "it should just work".
The "existence" criteria
for a PGP subsystem is in the extrasInit.tcl function Pgp_Init.
if { [file exists [set pgp($v,pubring)]] &&
[file isdirectory [set pgp($v,path)]] &&
[file exists $pgp($v,path)/$pgp($v,executable,version)]} {
catch {exec $pgp($v,path)/$pgp($v,executable,version)
$pgp($v,executable,versionflags)} voutput
ExmhLog "exec returned $voutput"
if {[regexp $pgp($v,executable,versionregexp) $voutput]} {
The various gpg settings are in pgpBase.tcl
set pgp(supportedversions) [list pgp pgp5 gpg pgp6]
set pgp(gpg,enabled) 0
set pgp(gpg,fullName) "GnuPG"
set pgp(gpg,executable,key) gpg
set pgp(gpg,executable,verify) gpg
set pgp(gpg,executable,encrypt) gpg
set pgp(gpg,executable,sign) gpg
set pgp(gpg,executable,version) gpg
set pgp(gpg,executable,versionflags) "--version"
set pgp(gpg,executable,versionregexp) "^gpg"
set pgp(gpg,defaultPath) "$env(GNUPGHOME)"
set pgp(gpg,defaultPath) "$env(HOME)/.gnupg"
set pgp(gpg,configFile) "$pgp(gpg,defaultPath)/options"
set pgp(gpg,pubring) "$pgp(gpg,defaultPath)/pubring.gpg"
set pgp(gpg,secring) "$pgp(gpg,defaultPath)/secring.gpg"
set pgp(gpg,pubringBkp) "$pgp(gpg,defaultPath)/pubring.gpg~"
set pgp(gpg,keyGenCmd) "rm -f $pgp(gpg,pubringBkp) && gpg --gen-key"
set pgp(gpg,ownPattern) ""
set pgp(gpg,pat_MenuInner) {GPG}
set pgp(gpg,pat_Version) "Version:\[ \t\]*(GNUPG|GnuPG).*"
set pgp(gpg,list_Alien) {pgp5 pgp6 pgp}
set pgp(pgp,list_Alien) {pgp5 pgp6 gpg}
set pgp(pgp5,list_Alien) {gpg pgp pgp6}
set pgp(pgp6,list_Alien) {pgp pgp5 gpg}
>>>"Stephen P. Cohen" said:
> Dear Brent,
>
> Just a quick question. I'm desperate to integrate my *working* GnuPG
program
> with a good MH-style mailer like exmh. However Exmh seems unable to
recognis
e
> that I have a working gpg setup already. I've tried fooling it by
temporaril
y
> emptying out my ~/.gnupg/ directory, then re-creating keys using exmh's
own
> "make key" function but I still get no PGP-related menu offered to me
when I
> go into 'Preferences'.
>
> Any hints would be appreciated. I will go with the first mailer that
works,
> having tried already (and failed) with Gnus, MH-E, XFMail, Sylpheed and
KMai
l.
>
> I want "seamless" integration, otherwise ... back to the command line.
>
> Thanks.
>
>
> --
> Stephen P. Cohen
>
> Email: <[email protected]>
> <[email protected]>
>
> Voice: (UK mobile) +44 7966 467 165
>
>
>
--
Brent Welch
Software Architect, Panasas Inc
Delivering the World's Most Scalable and Agile Storage Network
www.panasas.com
[email protected]