Re: BBDB beginners guide?

2010-10-30 Thread Uwe Brauer
 Regarding Re: BBDB beginners guide?; Johnny yggdra...@gmx.co.uk adds:

Ok, I have realised that the BBDB 2.35 documentation works ok and using
'C-h a', 'C-h v' goes a long way. However, I am trying to make BBDB stop
asking me to add mail addresses. I found:

bbdb-add-address(es) in the online documentation and set this to nil or
'never.


Here is my setting: (still using 2.35 with Robert Fenks
extensions)
(require 'bbdb)
(setq bbdb-use-pop-up nil   
  bbdb-completion-display-record t)



(add-hook 'mail-setup-hook 'bbdb-define-all-aliases) 
(add-hook 'gnus-message-setup-hook 'bbdb-define-all-aliases) 
(add-hook 'wl-mail-setup-hook 'bbdb-define-all-aliases) 

(setq bbdb-quiet-about-name-mismatches t) 
;; that is useful since some mail clients don't deal with
;; NON ASCII chars in the same way. So Sometimes you receive
;; José sometims Jose 




(setq  bbdb-send-mail-style 'gnus)  ;chance that 
(setq bbdb-dwim-net-address-allow-redundancy t)
(autoload 'bbdb/vm-auto-add-label bbdb-vm Run VM major mode on a buffer nil)

(add-hook 'bbdb-notice-hook 'bbdb/vm-auto-add-label)



(setq bbdb-complete-name-allow-cycling t)


(bbdb-initialize 'gnus 'message)
(add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus) 

(require 'bbdb-anniv)
(add-hook 'list-diary-entries-hook #'bbdb-include-anniversaries)
(require 'bbdb-rf)

In this setting every new mail (even spam) will add an entry
to the BBDB (I once reached 3000 entries)
that is where bbdb-expire comes in handy


(require 'bbdb-expire)


(setq bbdb-expire-this-old 7) ; all bbdb entries older than
7 days will be deleted, 

The only exceptions are entries with have the following fields.

(bbdb-expire-field-foo-p 'mail-alias)
(bbdb-expire-field-foo-p 'vm-folder)
(bbdb-expire-field-foo-p 'vm-virtual)
(bbdb-expire-field-foo-p 'tel)
(bbdb-expire-field-foo-p 'news) 
(bbdb-expire-field-foo-p 'signature)
(bbdb-expire-field-foo-p 'imap) ;Version:1.111
(bbdb-expire-field-foo-p 'mail-hierarchy) ;Version:1.112
(bbdb-expire-field-foo-p 'birthday)
(bbdb-expire-field-foo-p 'face) 
(bbdb-expire-field-foo-p 'www)  

(setq bbdb-expire-preservation-functions
 '(bbdb-expire-field-permanent-p
   bbdb-expire-field-mail-alias-p
   bbdb-expire-field-vm-folder-p
   bbdb-expire-field-vm-virtual-p
   bbdb-expire-field-signature-p
   bbdb-expire-field-tel-p
   bbdb-expire-field-imap-p 
   bbdb-expire-field-mail-hierarchy-p 
   bbdb-expire-field-face-p 
   bbdb-expire-field-birthday-p
   bbdb-expire-field-www-p  
   bbdb-expire-field-news-p 
   bbdb-expire-field-notes-p))

(bbdb-expire-initialize)


Another  extremely useful pkg is moy-bbdb since it adds an
entry one a message is sent (and had no bbdb entry)

(require 'moy-bbdb)
(autoload 'bbdb/send-hook moy-bbdb 
   Function to be added to `message-send-hook' to notice records when
   sending messages t)
 
(add-hook 'message-send-hook 'bbdb/send-hook) ; If you use Gnus

(add-hook 'mail-send-hook 'bbdb/send-hook) ; For other mailers
; (VM, Rmail)

I also use the gnus splitting method and split messages
according to their bbdb entry (I think this code is included
in the official bbdb pkg)
You can then use sigadapt which inserts signatures according
bbdb entries.

I used that code and have extension for adding gcc fields
according to the bbdb entries and set also the ispell
dictionary according to a bbdb entry called ispell-dict.

If you are interested I can send you details.

Uwe Brauer 


--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: BBDB beginners guide?

2010-10-30 Thread Bruno Tavernier
CC: To Roland

Hello Uwe,

Uwe Brauer o...@mat.ucm.es writes:

 Beg your pardon? I am still using 2.35 and hadn't the time
 to give 3.x a try. The names of the variables are changed,
 but why. I consider this as a *terrible* design
 decision. Why loose the compatibility.

From bbdb home page it appears the code did not evolve for a long time
(Jan 2007).

I think Roland wrote bbbd 3.0 with the idea to remove some crufts,
enhance the clarity of the code (function's description, etc.) and use
more meaningful names.

From my point of view he managed to do it well. (I am glad to see the
project with a maintainer).

Also, I think that only a few variables were changed. Updating my conf
was not much of a big deal - I am not an emacs old timer, though. I
don't have strong habits yet. ;-)

-- 
Bruno

--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: BBDB beginners guide?

2010-10-30 Thread Uwe Brauer
 Regarding Re: BBDB beginners guide?; Bruno Tavernier 
 tavernier.br...@gmail.com adds:
Hi Bruno,

CC: To Roland
Hello Uwe,

First of all I did not mean to attack you, sorry if I have
caused that impression.


From bbdb home page it appears the code did not evolve
for a long time (Jan 2007).

That is correct. (Same was true for VM)

I think Roland wrote bbbd 3.0 with the idea to remove
some crufts, enhance the clarity of the code
(function's description, etc.) 

So far so good, I appreciate that effort

and use more meaningful names.

This, in my opinion, is a very bad idea.
Taste is subjective and once names are chosen they become  a
convention. To break backward compatibility deliberately has
no benefit I can think off. 


From my point of view he managed to do it well. (I am
glad to see the project with a maintainer).


So do I.

Also, I think that only a few variables were
changed. 
Well in that case defalias should be used for backward
compatibility. 

Updating my conf was not much of a big deal -
I am not an emacs old timer, though. I don't have
strong habits yet. ;-)

Well I am using it for almost 20 years. It is not the habit
it is backward compatibility which bothers me.





Regards

Uwe Brauer



--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/