On July 23, [EMAIL PROTECTED] said: > Sometimes I get a message from a mailing list with a From address like > this: > "John Doe via RT <[EMAIL PROTECTED]>" > Since I have a record for <[EMAIL PROTECTED]>, BBDB will > offer me to make "John Doe via" the name of this record, which is > certainly not what I want. > > I added a variable `bbdb-canonicalize-name-hook', similar to > `bbdb-canonicalize-net-hook', and I set it like this: > > (setq bbdb-canonicalize-name-hook > (lambda (name) > (when name > (cond ((string-match " via$" name) nil) > (name)))))
There's already support for using arbitrary functions to extract the name; do an apropos on bbdb-extract-address-component for further info. Cheers, Waider. -- [EMAIL PROTECTED] / Yes, it /is/ very personal of me. "is ""zig"" a technical term?" - Ralph Slattery ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/