> * Sam Steingold <f...@tah.bet> [2012-09-13 17:53:49 -0400]: > > I created a record and now I get these: > > error("Record %s does not exist" [nil nil nil nil nil nil nil > ("ch...@alerts.chase.com") ((creation-date . "2012-09-13 21:38:52 > +0000")) [#1="" #1# nil nil]]) > bbdb-display-records(([nil nil nil nil nil nil nil > ("ch...@alerts.chase.com") ((creation-date . "2012-09-13 21:38:52 > +0000")) [#1="" #1# nil nil]]) nil nil nil (lambda (window) > (with-current-buffer (window-buffer window) (eq major-mode (quote > gnus-article-mode))))) > bbdb-mua-auto-update() > run-hooks(gnus-article-prepare-hook) > apply(run-hooks gnus-article-prepare-hook) > gnus-run-hooks(gnus-article-prepare-hook) > > the record is precisely as I want it: it does not have a name because no > name was provided in the message it was created from.
(defun sds-bbdb-add-name (rec name) "Decide whether to change the record name." (let ((n1 (bbdb-record-firstname rec)) (nl (bbdb-record-lastname rec))) (cond ((and (null n1) (null nl)) t) ((or (string= n1 name) (string= nl name)) nil) (t 'query)))) (setq 'bbdb-add-name 'sds-bbdb-add-name) -- Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000 http://www.childpsy.net/ http://mideasttruth.com http://honestreporting.com http://iris.org.il http://palestinefacts.org There are two ways to write error-free programs; only the third one works. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/