bbdb can use mml-secure-message-encrypt-pgpmime supplied by gnus in mml-sec.el. mailcrypt, which is rather old, is not needed. The option bbdb/pgp-method has to be set. See attached diff for changed ebuild.
Created attachment 102602 [details, diff] Patch: crypt -> mailcrypt
Created attachment 102603 [details] sitelisp file if not mailcrypt
I forget to mention: everything was tried with (GNU) emacs-cvs and gnus-cvs.
gnus is not needed for bbdb, so your patch must be modified. Maybe a gnus USE flag to pull in gnus, and only when USE="gnus -mailcrypt" use the internal function, while USE="gnus mailcrypt" pulls in mailcrypt and installs the normal sitefile. Have fun. :)
At least in the cvs of emacs a recent enough version of gnus is included. bbdb-pgp includes (require 'message) so I could add (require 'bbdb-pgp) in the bbdb-pgp-gentoo sitelisp file. Then bbdb itself works eg <#secure method=pgpmime mode=signencrypt> is added in the C-x m mail buffer. The problem is that the necessary mml command to generate the mime parts is not called before sending. Any idea to solve it (and with other Mail sending possibilities)? Do you think that's a good idea? If that worked somehow it would be better because of less use flags with equal effect. If not, I'll add the changes. Thx
(In reply to comment #5) > At least in the cvs of emacs a recent enough version of gnus is included. > bbdb-pgp includes Sorry for not responding for so long, but I thought about your problem and then simply forgot. What about if we wait until Emacs 22 is released?
Ok, it's probably the best way to know the next stable release and it isn't a serious problem anyway. thx
This is "fixed" in 0.35 by a comment in pkg_postinst