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