From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2636 Path: news.gmane.org!not-for-mail From: Michael R. Wolf Newsgroups: gmane.emacs.gnus.user Subject: bbdb/message-auto-create-p proposal [was Re: BBDB problem] Date: Wed, 18 Jun 2003 10:21:29 -0700 Organization: LCL Software & Training, Inc. Message-ID: References: <877k7k4pu0.fsf@hades.kotnet.org> <873ci84pjs.fsf@hades.kotnet.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668996 15848 80.91.229.2 (31 Jan 2006 00:56:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:56:36 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:30:59 2006 Original-Path: quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: sense-sea-megasub-1-477.oz.net Original-X-Trace: quimby.gnus.org 1055956932 6720 216.39.145.223 (18 Jun 2003 17:22:12 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 18 Jun 2003 17:22:12 GMT User-Agent: Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (windows-nt) Cancel-Lock: sha1:seMDcDYV6rcf/gonuxPp3/7BtaQ= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:2776 Original-Lines: 76 X-Gnus-Article-Number: 2776 Tue Jan 17 17:30:59 2006 Xref: news.gmane.org gmane.emacs.gnus.user:2636 Archived-At: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> writes: > On Tue, Jun 17 2003, Pieter Laeremans wrote: >> Pieter Laeremans writes: >>> Is it possible to configure gnus so that it will only use BBDB for my >>> INBOX and not for real newsgroups ? > > See the variables `bbdb/mail-auto-create-p' and > `bbdb/news-auto-create-p' which can be set via group or topic > parameters in Gnus. This all reminds me of a project I started, completed, and have been field trialing for a bit..... A few weeks ago, I requested help for *outbound* auto-create to balance the *inbound* auto-create. I find *outbound* to be much more useful. [I'm in a business development phase, and am sending new mail to an increasing number of new contacts.] I'm much more interested in capturing email addresses of people I spend time composing a message for than of folks whose message I happen to read, however casually. Of course, I love capturing inbound email addresses too, even if there are too many of them. The problem I found wasn't capturing too many inbound messages, rather capturing too few (i.e. zero) outbound messages. I started a piece of code, then iterated it with Benjamin Rutt to get the following solution. After using it for a while, I've found it to be *very* effective and *very* useful. Because the code remembers to capture the email address for me, I no longer need to remember to add the address to BBDB *before* I start composing the message. That prevents me from loosing the email address, a common occurrence in the past. I how have symmetry. I capture an email address if they send me email first or if I send them email first. That facilitates future correspondence. It's great for business. I think this is such a useful construct that I'd like to propose bbdb/message-auto-create-p as a way to encapsulate all this behavior. How would I make a formal proposal regarding this? And who would I follow up with to make sure that it happened? Thanks, Michael Wolf ;;; ================================================================ ;;; It works. ;;; 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 # too restricted ;;; message-send-news-hook # too restricted ;;; message-send-hook # just right!!! ;;; message-sent-hook # too late (add-hook 'message-send-hook 'wolf3-bbdb-add-recipients-to-bbdb) -- Michael R. Wolf All mammals learn by playing! MichaelRunningWolf@att.net