unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Unable to update BBDB records on message send with gnus
@ 2016-03-16  9:35 Kostas Zorbadelos
  2016-03-17  5:19 ` Eric Abrahamsen
  0 siblings, 1 reply; 2+ messages in thread
From: Kostas Zorbadelos @ 2016-03-16  9:35 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: winkler


Hello all,

I want to update BBDB records for all outgoing message recepients. I
found a relevant post on stackexchange

http://emacs.stackexchange.com/questions/164/automatically-add-recipients-mail-address-to-the-bbdb-database

and based on that my relevant config is:

.emacs
;; Activate bbdb contact manager
(require 'bbdb)
(bbdb-initialize 'gnus 'message)
; The following will parse fields in outgoing messages,
; and suggest creation of corresponding BBDB entries
(bbdb-mua-auto-update-init 'message) ;; use 'gnus for incoming messages too
(setq bbdb-mua-auto-update-p 'query) ;; or 'create to create without asking
; prevent a bbdb window pop-up in gnus
(setq bbdb-mua-pop-up nil)
; cycle through bbdb contacts in mail completion
(setq bbdb-complete-mail-allow-cycling t)

versions
----------
GNU Emacs 24.5.1
BBDB version: 20151114.1541 (Melpa package)
https://melpa.org - Corresponds to git HEAD (
(bbdb
:url "git://git.savannah.nongnu.org/bbdb.git"
:fetcher git
:files ("lisp/.el" "doc/*.texi"))) 

When I edit a message with a few recipients I only get queried to update
the record for the sender (me) in the first time. I get no query for
recipient records updates or creations. 

Sending a mail to 2 recipients, I managed to follow the execution until
this point 

Debugger entered--entering a function:
* bbdb-annotate-message(("Kostas Zorbadelos" "kzorba@<hidden1>" "From" sender message) bbdb-query-create)
* byte-code("\b\204\n	\304=\203\0\305\n@\n\211A@\262\"\202;	\306=\203$\307\n\306\"\202;	\310=\2031\307\n\311\"\202;	\312=\205;\307\n\312\"\313\207" [bbdb-read-only bbdb-update-records-p address hits search bbdb-message-search update bbdb-annotate-message query bbdb-query-create create nil] 4)
* bbdb-update-records((("Kostas Zorbadelos" "kzorba@<hidden1>" "From" sender message) (nil "<user1>@<hidden2>" "To" recipients message) (nil "<user2>@<hidden3>" "To" recipients message)) query nil)
  bbdb-mua-update-records(nil query)
  bbdb-mua-auto-update()
  run-hooks(message-send-hook)
  message-send(nil)
  message-send-and-exit(nil)
  call-interactively(message-send-and-exit)
  ...

Seems bbdb-update-records only queries/updates the first record and
disregards the rest. 
I also opened a relevant item in BBDB project

http://savannah.nongnu.org/support/index.php?108997

Any comments, solutions welcome.

Thanks,
Kostas

-- 
Kostas Zorbadelos	http://gr.linkedin.com/in/kzorba		



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-17  5:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-16  9:35 Unable to update BBDB records on message send with gnus Kostas Zorbadelos
2016-03-17  5:19 ` Eric Abrahamsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).