Hi
I think there is a bug in the regular expression in mc-gpg.el
which is used in mailcrypt-3.5.5 together with gnupg-1.0.5.
This is what Brian Warner gets whith his version of gpg:
;31:warner@zs2-pc4% gpg --list-secret-keys --with-colons --no-greeting
;/home/warner/.gnupg/secring.gpg
;-------------------------------
;sec::1024:17:1FE9CBFDC63B6750:1998-08-04:0:::Brian Warner (temporary GPG key)
<warner(a)lothar.com>:
;ssb::1024:20:C68E8DE9F759FBDE:1998-08-04:0:::
;sec::768:17:16BD446D567E33CF:1998-08-04:0:::signature (sample signature key)
<key@key>:
;sec::768:16:D514CB72B37D9AF4:1998-08-04:0:::crypt (crypt) <crypt@crypt>:
;sec::1024:17:4DBDD3258230A3E0:1998-08-04:0:::dummyy <d@d>:
;ssb::1024:20:549B0E6CBBBB43D1:1998-08-04:0:::
And this is his regexp for matching:
(key-regexp
"^\\(sec\\|pub\\):[^:]*:[^:]*:[^:]*:\\([^:]*\\):[^:]*:[^:]*:[^:]*:[^:]*:\\([^:]*\\):$"
)
I'm using gpg-1.05 compiled under cygwin (passing all tests) with (see subject) and I
get:
[712]> gpg --list-secret-keys --no-greeting --batch --with-colons
/users/vzell/.gnupg/secring.gpg
-------------------------------
sec:u:1024:17:0A8F8157EBCFE3E8:2001-05-18::::Dr. Volker Zell (Ciko)
<dr.volker.zell@oracle.com>:::
ssb::1024:16:2179761C5E488513:2001-05-18:::::::
vzell@VZELL /tmp
[713]> gpg --list-secret-keys --no-greeting --batch --with-colons "Dr. Volker Zell
(Ciko) <dr.volker.zell(a)oracle.com>"
sec:u:1024:17:0A8F8157EBCFE3E8:2001-05-18::::Dr. Volker Zell (Ciko)
<dr.volker.zell@oracle.com>::scESC:
ssb::1024:16:2179761C5E488513:2001-05-18::::::e:
As you can see I get two more : at the end of each line. Therefore I have to use the
following
regexp. But then everything works. At least for me.
(key-regexp
"^\\(sec\\|pub\\):[^:]*:[^:]*:[^:]*:\\([^:]*\\):[^:]*:[^:]*:[^:]*:[^:]*:\\([^:]*\\)[^:]*:[^:]*:[^:]*:$"
)
Ciao
Volker