all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kostas Zorbadelos <kzorba@otenet.gr>
To: help-gnu-emacs@gnu.org
Cc: winkler@gnu.org
Subject: Unable to update BBDB records on message send with gnus
Date: Wed, 16 Mar 2016 11:35:40 +0200	[thread overview]
Message-ID: <87a8lyu5n7.fsf@otenet.gr> (raw)


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		



             reply	other threads:[~2016-03-16  9:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-16  9:35 Kostas Zorbadelos [this message]
2016-03-17  5:19 ` Unable to update BBDB records on message send with gnus Eric Abrahamsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a8lyu5n7.fsf@otenet.gr \
    --to=kzorba@otenet.gr \
    --cc=help-gnu-emacs@gnu.org \
    --cc=winkler@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.