[Evolution-hackers] Is there any APIs for fetching the GPG Key id from a CamelMimeMessage ?

2008-06-25 Thread Zhang Shunchang
hi,all i am doing something about the GPG Keys in Evolution. i want to get the GPG Key ID(8 hex digit) from the message if this message was signed. i found that there is a valid field in CamelCipherValidity structure, where there is a sign.description field, which points out: Version: GnuPG

Re: [Evolution-hackers] Is there any APIs for fetching the GPG Key id from a CamelMimeMessage ?

2008-06-25 Thread Jeffrey Stedfast
It doesn't look like there's any current API to do it. I suggest you look at gmime svn's gmime-cipher-context.[c,h] and gmime-gpg-context.[c,h], specifically the code that fills in the GMimeSigner structures and just make CamelCipherCertInfo struct closer to the GMimeSigner struct. Jeff On Wed,