Hi

I'm trying to update bbdb-pgp.el from Bbdb version 2, so that it will
work with Bbdb version 3.

As far as I can tell, the crucual bit in bbdb-pgp.el that needs to be
changed is:

,----
| (defun bbdb/pgp-get-pgp (name address)
|   "Look up user NAME and ADDRESS in BBDB and return the PGP preference."
|   (let* ((record (bbdb-search-simple name address))
|      (pgp (and record
|            (bbdb-record-getprop record bbdb/pgp-field))))
|     pgp))
`----


bbdb-search-simple (from Bbdb version 2) can be replaced by
bbdb-message-search (from Bbdb version 3).

but I have not figured out how to replace bbdb-record-getprop

I've tried replacing it with bbdb-record-field and, when that failed,
tried bbdb-record-xfield (both from Bbdb version 3). 

The problem seems to be that where bbdb-record-getprop returns the desired
value stored the .bbdb, both bbdb-record-field and bbdb-record-xfield
return "nil".

Anybody here an idea?



------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to