Mats Lidell <[EMAIL PROTECTED]> writes:
> Is something wrong with this configuration?
Yes, you just miss one line, I think. For noticing when recieving, you
need this :
(setq bbdb-notice-hook '(bbdb-auto-notes-hook))
So, for noticing when sending, you need that :
(setq bbdb/send-notice-hook '(bbdb/send-auto-notes-hook))
This may seem a bit heavy, but my goal was to make something truly
symmetrical to noticing on sending, and this seems to be the most
customizable, and the most efficient for people who don't use this
functionality.
Here is my complete configuration for bbdb/send :
(setq
;; Add the notes when noticing messages.
bbdb/send-notice-hook '(bbdb/send-auto-notes-hook)
;; Ignore the messages described in bbdb/send-ignore-some-messages-alist
bbdb/send-auto-create-p 'bbdb/send-ignore-some-messages-hook
;; Useless with the previous line, but ...
bbdb/send-ignore-most-messages-alist '(("Subject" . "yyyyyy"))
;; The only messages to be ignored.
bbdb/send-ignore-some-messages-alist '(("Subject" . "xxxxxx"))
;; What to add to the record.
bbdb/send-auto-notes-alist '(("Subject"
(".*test.*" . "I sent him a test.")
(".*" last-sent 0 t)))
;; This is standard (not specific to moy-bbdb.el).
;; Keep track of the last message recieved.
bbdb-auto-notes-alist '(("Subject"
("test" . "He sent me a test")
(".*" last-recieved 0 t))
("Organization"
(".*" company 0)))
)
If I send a message to [EMAIL PROTECTED], with subject test, I
get the following record :
tototoototxx
net: [EMAIL PROTECTED]
creation-date: 21 Feb 2002
timestamp: 21 Feb 2002
notes: I sent him a test.
last-sent: test
So, does it work ?
--
Matthieu
_______________________________________________
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/