* Robert Fenk <[EMAIL PROTECTED]> wrote:
> When using bbdb-define-all-aliases or bbdb-complete-name
> they should be displayed anyway while inserting them (see
> variable `bbdb-completion-display-record').
> Just those stemming from a reply should not show up, but
> they should be listed while viewing the message with your MUA.
Thanks for the explantion.
> When you are looking for automatic creation of records only
> for those messages you are replying to, you should add the
> function 'bbdb-force-record-create (which resides in
> bbdb-hooks.el) to the reply-hook of your MUA!
I have found another nice Lisp code which does almost the same for
outgoing mails:
,----
| ;; Michael R. Wolf in <[EMAIL PROTECTED]>:
| ;; BBDB-Eintr�ge erstellen f�r ausgehende Mails
| ;; TODO: Remove the mapconcat addition of commas, that get removed by m-t-h
| (defun wolf3-bbdb-add-recipients-to-bbdb ()
| "Add all recipients to BBDB, using this list of headers:
| from, sender,
| to, cc, bcc,
| resent-from, resent-to, resent-cc, resent-bcc."
| (let ((fields '("from" "sender"
| "to" "cc" "bcc"
| "resent-from" "resent-to" "resent-cc" "resent-bcc")))
| (mapc
| (lambda (address)
| (bbdb-annotate-message-sender address t t t))
| (save-restriction
| (message-narrow-to-headers)
| (message-tokenize-header (mapconcat 'message-fetch-field fields ","))))))
|
| ;; Could go into many hooks:
| ;; message-send-mail-hook
| ;; message-send-news-hook
| ;; message-send-hook
| ;; message-sent-hook
| (add-hook 'message-send-hook 'wolf3-bbdb-add-recipients-to-bbdb)
`----
This works pretty well for me (although I actually asked in my first
mail how to remove this I am using it again now). :-)
Regards,
Marcus
--
"anger thought so no thought touched inside crazy
(disembodied guttural noise need not make sense)"
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/