On Tuesday, November 21, 2006 at 11:05:12, WJCarpenter wrote: > > Does anybody know about such a mailrc like feature. > > Below is some code that I have been using for this for a long, long > time. IIRC, I wrote it, but it could also be that I wrote something > like it and then threw mine away when someone else did it better. > Sorry for the foggy memories, and sorry if someone reading this > wrote this code that I swiped without attribution. > > This works for me in my hacked up BBDB 2.34 (does anybody using BBDB > not have a "hacked up" version? :-) I think the comments in the code > explain it pretty well. > > > (defcustom bbdb-define-all-aliases-hierarchy-field 'mail-hierarchy > "*The field which for bbdb-define-all-aliases means hierarchies." > :group 'bbdb > :type 'symbol)
I was thinking about a way to get this without adding another option to BBDB. We could follow the mailrc and do a search for records whenever we find a net without a "@". That way it no one needs to set jet another option and defining of hierarchical aliases is pretty simple. There is just one draw back, i.e. it might break things for those that have net entries without a "@" and records with that net as alias. What do you think about implementing it like this? Robert. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/