On 6 Oct 2013, Roland Winkler wrote: > On Sun Oct 6 2013 Gijs Hillenius wrote: >> thanks for the prompt reply! I was wondering if I need to register >> the xfield somewhere. > > No. Either a record has the xfield, or it doesn't, that's all you > need. > >> Test Name >> mail: t...@example.org >> pgp-mail: sign >> notes: test address > > What do you get with the following? > > (bbdb-record-field record 'pgp-mail)
Do you mean like so? (defun bbdb/pgp-get-pgp (name address) "Look up user NAME and ADDRESS in BBDB and return the PGP preference." (let* ((record (bbdb-message-search name address)) (pgp (and record (bbdb-record-field record 'pgp-mail)))) pgp)) it returns nil (not even "nil") > Also, are you sure the value of record is what it should be? I'm not sure I understand the question. But : in bbdb v2 edebug shows the reply is "sign"; and the message-send-hook uses that to prepare Gnus for gpg-signing. In bbdb v3 the answer is nil and the hook does nothing. I noticed this in bbdb.el (version 3) ;; Return xfield FIELD (e.g., `notes') or nil if FIELD is not defined. which is why I wondered if I had to define it somewhere... -- You will receive a legacy which will place you above want. ------------------------------------------------------------------------------ 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/