On July 24, [EMAIL PROTECTED] said:
> 
> where do you call this?

It's called in the patch he appended to his original post.

> It'd be nice if mail-extract-address-components had a hook somewhere or
> some regexp check for parts of the email addr to discard. Maybe there even
> is a possibility, but this function is too complicate for me :-(.

It doesn't, unfortunately. It allows you to tweak what it considers
prefixes, but that's not really any use for this. The current
recommended solution as implemented in the BBDB code tree is

1. Set bbdb-extract-address-components-func to
   bbdb-extract-address-components (it defaults to
   bbdb-rfc822-addresses, which is essentially a wrapper to remove
   some of the stupidity from rfc822.el)
2. Add an entry to bbdb-extract-address-component-regexps to handle
   the "via" stuff.

What you're losing here is that rfc822.el is pretty much the
definitive emacs implementation of correct address parsing, but it's
mechanical in that it returns to you the exact "name" text from the
input email address. On the other hand, Robert Fenk and others have
put a good deal of work into making bbdb-extract-address-components
operate in a pretty sane fashion, and you get the added benefit of
being able to tweak it more than you can tweak the rfc822 stuff.

In an ideal world, this mess would be handled by mail-extr.el or
rfc822.el. Unfortunately, we're not in an ideal world.

Cheers,
Waider.
-- 
[EMAIL PROTECTED] / Yes, it /is/ very personal of me.

I'd already put in my 40 hours for this week by 10pm Tuesday.


-------------------------------------------------------
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/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to