From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79842 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.gnus.general Subject: Re: using bbdb in split methods Date: Wed, 07 Sep 2011 13:00:15 +0200 Message-ID: <87k49kr51c.fsf@gmail.com> References: <87hb4rsa22.fsf@ucl.ac.uk> <87bouzthy1.fsf@ericabrahamsen.net> <8762l6gl5j.fsf@ucl.ac.uk> <87sjo9cco9.fsf@ericabrahamsen.net> <87vct46ago.fsf@ucl.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1315406933 21586 80.91.229.12 (7 Sep 2011 14:48:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Sep 2011 14:48:53 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28136@lists.math.uh.edu Wed Sep 07 16:48:46 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R1JQi-0006ys-9k for ding-account@gmane.org; Wed, 07 Sep 2011 16:48:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1R1JQ6-0003ZG-KG; Wed, 07 Sep 2011 09:48:06 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1R1G62-0002cu-PP for ding@lists.math.uh.edu; Wed, 07 Sep 2011 06:15:10 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R1G60-0007Mf-PX for ding@lists.math.uh.edu; Wed, 07 Sep 2011 06:15:10 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1R1G5x-0006j3-HS for ding@gnus.org; Wed, 07 Sep 2011 13:15:05 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R1G5w-0005a9-DE for ding@gnus.org; Wed, 07 Sep 2011 13:15:04 +0200 Original-Received: from 0x555293e1.adsl.cybercity.dk ([85.82.147.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Sep 2011 13:15:04 +0200 Original-Received: from rasmus by 0x555293e1.adsl.cybercity.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Sep 2011 13:15:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 87 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 0x555293e1.adsl.cybercity.dk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAAAnRSTlMA/iyWEiMAAAACYktH RAD/h4/MvwAAAAlwSFlzAAAASAAAAEgARslrPgAAAjNJREFUSMe1lsGNIzsMRH15+VQmlUqFwlAY CiMS9qDucdtuD7D78QX4YFtPJFVUSY/1l+Pxj0AbqOO36ZrfgTFytfa0EaD+DRBxTR0h4ukS+Q6Y UC2AJBZOJl+Ix1qNyYCrAhIg8xPwE4jE2DGqTqoNgjFfAEtUzDnUJRvPbYjHWhJvo6YMI+Y+JfxO yMAKN8Qu+oMA3ESfWT1WgGp4wzSCCL2p/iglZUC1Qm2ZUcY7N4Gvqj/iOoue3h88U89y9KL6Y1As CfWysvbMdHVftsCXGhqc1K5hWmABR057XPrksdYqwVWLqaqjt54x5uU8DBf1NJ97HPn1APkCdN2o EvoVeOaU5k5G6UuErcRHryiH6D9AfpuPZO2kThM4GlD388EEzcVmjhruCwCsgzgB0wYtU/c5mU2c QBOrssTMXbOrD8F/nK+gJiPKee7+GDA7NoR5WmVR+8io8FRSPV05FnfPDnHx1khENIWrusqCPlpF 8QjbVzOeUKI4z6xiyngCFJlq68W9d0oUCjWz1shF3EABNdQbUFAE5TAxKTQpKGzkdQOoUI7+l61i r1Nr5u1CqQ3kBxis/ZU6+vsFCIXq8ndTeAN9Aww2qp1D7xKMQ3Qfodj7d2S8VhNwKNAdIBuUnVLO U6Ic63wCREBZUMpayy5wrC+APFHXoetaq+iZ5XwDGveUirOGZSTIVLoPZd6E2xabPjexk3jffrl9 CUy3SD19a53OWN+fDgHydvXMf35r/I/AH5DaBVjP2kHeAAAAAElFTkSuQmCC Cancel-Lock: sha1:2HG1agdiVoH4JJZVtNacdrdUGkA= X-Spam-Score: -5.4 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79842 Archived-At: Eric S Fraga writes: > Yes, I've been aware of bbdb 3 for a long time and, partly, this is why > I have resisted getting too much into the current bbdb... but that's > probably just an excuse for procrastination! :-( I haven't used bbdb2 (I used org-contacts before) but bbdb3 is pretty straight forward. Here is my bbdb3 setup –Rasmus #+begin_src org * TODO BBDB 3 BBDB is the Insidious Big Brother Database for GNU Emacs. It provides an address book for email and snail mail addresses, phone numbers and the like. It can be linked with various Emacs mail clients (Message and Mail mode, Rmail, Gnus, MH-E, and VM). BBDB is fully customizable. ** Load stuff #+begin_src emacs-lisp (add-to-list 'load-path "~/.emacs.d/bbdb/lisp/") (require 'bbdb) (bbdb-initialize 'gnus) (bbdb-mua-auto-update-init 'gnus) #+end_src ** Sanitizing the BBDB Wouldn't it be nice if it showed Danish addresses correctly? #+begin_src emacs-lisp (add-to-list 'bbdb-address-format-list '(("Denmark" "Danmark") "spcC" "@%s\n@%p @%c@ (%S)@\n%C@" "@%c@")) (add-to-list 'bbdb-phone-label-list "mobil") #+end_src I don't care about people from usenet. Don't ask me! Always ask in all other cases. (This is somewhat annoying behavior that needs to be looked further into) #+begin_src emacs-lisp (defun bbdb/gnus-update-selectively () "Update BBDB record selectively" (interactive) (if (gnus-news-group-p gnus-newsgroup-name) (setq bbdb/gnus-update-records-p nil) (setq bbdb/gnus-update-records-p 'query) )) (add-hook 'gnus-summary-prepare-hook 'bbdb/gnus-update-selectively) #+end_src ** Settings There is a post about various settings at [[http://emacs-fu.blogspot.com/2009/08/managing-e-mail-addresses-with-bbdb.html][emacs-fu]] but it is probably for the v2 branch of BBDB #+begin_src emacs-lisp ;; for sending mails... (add-hook 'message-setup-hook 'bbdb-get-mail-aliases) (setq bbdb-electric nil bbdb-default-country "Denmark" bbdb-mail-user-agent 'gnus-user-agent bbdb-phone-style nil bbdb-completion-display-record nil bbdb-pop-up-layout 'one-line bbdb-pop-up-window-size 2 bbdb-complete-mail-allow-cycling t bbdb-horiz-pop-up-window-size '(112 .1)) (setq bbdb-mail-allow-redundancy 'mail-only) #+end_src #+end_src