bbdb-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling "via" addresses


From: Sam Steingold
Subject: Re: Handling "via" addresses
Date: Thu, 07 Jul 2022 10:58:17 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)

> * Roland Winkler <jvaxyre@tah.bet> [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.  Is this
> an issue?  How are these two functions used elsewhere?

please see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56422

Lars (who re-wrote gnus and wrote `mail-header-parse-address' writes):

> mail-extract-address-components is a DWIM-ish thing that doesn't have
> much documented behaviour -- it just tries to make things "pretty" by
> applying lots of (mostly misguided) heuristics.  So talking about
> "correct" here isn't er correct.

> If you have an RFC822bis From header, you should use
> `mail-header-parse-address'.  If you have something that's vaguely like
> a mail header and want to split it, use `mail-header-parse-address-lax'.



-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2113
http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com
https://honestreporting.com https://thereligionofpeace.com
Between grand theft and a legal fee, there only stands a law degree.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]