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



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 v2.0.9 (GNU/Linux)
gpg: armor header: 
gpg: Signature made Wed 18 Jun 2008 06:17:27 AM CST using DSA key ID
AA208D9E
gpg: Can't check signature: No public key
==============

how can i get exactly the GPG Key ID? is there any public API or any
good method?

Thanks in advance!

-- 
Zhang Shunchang

NLP-group, ISCAS
http://www.cipsc.org.cn/~zsc
PGP Key ID: 30F9C5B9
fingerprint:7362 C766 1ED0 0AAF B994  CD83 1BD1 144E 30F9 C5B9

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]