Hi all,

we had a discussion on hierarchical mail aliases like in
~/.mailrc and there was a patch floating around, but aliases
in BBDB are a bit different, i.e. the alias maps only to the
first net of a record, not all of them.  Instead, multiple 
record may have the same alias to get the same result.

Some years ago I have added `bbdb-define-all-aliases-mode' 
in order to implicitly generate aliases for each net and all
nets of a record.  E.g., if you have the alias "a", then
"a1" will refer to the first net, "a2" to the second,
... and "a*" to all nets of a record.  Expansion of "a*",
only worked in XEmacs.

In fact, this made bbdb-define-all-aliases kind of
complicated and I never actually used the feature much
... to be honest it is a mess and I plan to remove it and
replace it by explicit aliases.

I just wonder if anyone except me ever used it?

So what comes next?

Allowing different (alias => net) mappings based on the
suffix of the alias, e.g.: 

 - ALIAS => maps to the primary net of the record.
   This is how aliases currently work.
 - ALIAS* => maps to all nets of the record.
 - [EMAIL PROTECTED] => maps to the 3rd net of the record.
 - ALIAS/REGEXP => maps to all nets of a record matching
   REGEXP. 
 - ALIAS*REGEXP => maps to the primary net of all records in
   the BBDB matching REGEXP, e.g. [EMAIL PROTECTED]
 - ...

So for the example above one would have to manually add the
aliases "a", "[EMAIL PROTECTED]", "[EMAIL PROTECTED]", ... and "aall*" to the 
aliases field
of the record.
 
Also for all nets which do not contain a "@", a check is
done if they exist as alias and then will be expanded
recursively.  So in order to define a hierarchical alias one
has to create a record with the alias "ha*" and specify nets
which are aliases of other records.

Anyway, I want to discuss this first to get some feedback
and new ideas before going to implement it!

Robert

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to