Mike Northam said something about "Re: Recording newsgroup info with 
bbdb/news-auto-create ?":

> >>>>> In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
>(Andy Cowling) writes:
> 
> Andy> I set bbdb/news-auto-create-p for certain interesting newsgroups. 
> Andy> Is there any way BBDB can automatically record the newsgroup an
> Andy> individual has posted to in the Notes field ?
> 
> I'm sure you could easily adapt this assuming 'newsgroup' is available in
> a variable somewhere.  This very useful hook keeps track of the last
> Subject header for anyone in your BBDB file.
> 
> ;; notice hook from Eric D. Hendrickson <[EMAIL PROTECTED]>
> 
> (setq bbdb-auto-notes-alist
>       '(("Subject" (".*" last-subj 0 t))
>       ("Organization" (".*" company 0 t))))
> 
> (setq bbdb-notice-hook 'bbdb-auto-notes-hook)

Cool.  Here is what I am doing now, in case anyone is interested:

(setq bbdb-auto-notes-alist
      '(("To"
         ("ange-ftp-lovers" . "ange-ftp")
         ("-bbdb" . "BBDB")
         ("www-announce@" . "Swiss WWW announce")
        ("Cc"
         ("ange-ftp-lovers" . "ange-ftp")
         ("-bbdb" . "BBDB")
         ("www-announce@" . "Swiss WWW announce")
        ("Subject" (".*" last-subj 0 t))
;;      ("Newsgroups" ("[^,]+" newsgroups 0 t))
        ("Newsgroups" (".*" newsgroups 0 t))
        ("X-URL" (".*" url 0 t))
        ("X-www" (".*" url 0 t))
        ("X-Organisation" (".*" company 0 t))
        ("X-Organization" (".*" company 0 t))
        ("Organization" (".*" company 0 t))))

(add-hook 'bbdb-change-hook 'bbdb-timestamp-hook) ; last modified date field
(add-hook 'bbdb-create-hook 'bbdb-creation-date-hook) ; creation date field
(add-hook 'bbdb-notice-hook 'bbdb-auto-notes-hook) ; see -auto-notes-alist

My only wish is for support for regexp's in the mail header field, then I
wouldn't have to have three separate entries for "company", and I could
combine my Cc: and To: entries.  But whatever.  :)

-- 
Two can Live as Cheaply as One for Half as Long.
                -- Howard Kandel

Eric D. Hendrickson       Damnit!  I can't stop the heterocyclic declination!
Central Computing Services          University of Minnesota, Twin Cities, USA
    I came to confess.  *I* was the second gunman on the grassy knoll....
<a href="http://www.umn.edu/~edh">[EMAIL PROTECTED]</a> 612/626-7761

Reply via email to