Re: Handling "via" addresses
Sam Steingold <[email protected]> Thu, 07 Jul 2022 10:58:17 -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. 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.