Re: Handling "via" addresses

Sam Steingold <[email protected]> Thu, 07 Jul 2022 10:51:00 -0400
Newsgroups gmane.emacs.bbdb.user
Message-ID <[email protected]>
> * Roland Winkler <[email protected]> [2022-07-06 15:15:39 -0500]:
>
> On Wed, Jul 06 2022, Sam Steingold wrote:
>> Subject: [PATCH] Use `mail-header-parse-address' instead of
>>  `mail-extract-address-components'.
>
> There is also `gnus-extract-address-components' that is supposedly
> faster than `mail-header-parse-address', though less accurate.

I don't think speed is an issue here in bbdb.
The `gnus-extract-address-components' function is a "fast hack" for data
presentation in gnus, it is not intended for "long term storage".

> I believe the approach of `mail-extract-address-components' is rather
> heuristic.  Could it make sense to declare it obsolete or make it an
> alias for one of the other functions?

This is a question for Emacs maintainers.
Empirically, `mail-header-parse-address' is more accurate than
`mail-extract-address-components' so I see no reason not to switch.

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2113
http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com
https://iris.org.il https://ffii.org https://mideasttruth.com
debugging, v: Removing the needles from the haystack.