emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: mail-extract-address-components extracts only part from "From:"


From: ShengHuo ZHU
Subject: Re: mail-extract-address-components extracts only part from "From:"
Date: Fri, 03 Jan 2003 14:52:22 -0500
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

Christoph Conrad <address@hidden> writes:

[...]

> I am using the latest Oort Gnus and have set
> `gnus-extract-address-components' to CVS GNU Emacs function
> `mail-extract-address-components'.
>
> The following "From:"-String: "1&1 Internet AG" <address@hidden>
>
> is parsed as follows:
>
> * mail-extr.el from GNU Emacs 21 CVS:
> (mail-extract-address-components "\"1&1 Internet AG\" <address@hidden>")
> => ("1" "address@hidden")
>
> * "gnus-util.el" from Oort:
> (gnus-extract-address-components "\"1&1 Internet AG\" <address@hidden>")
> => ("1&1 Internet AG" "address@hidden")
>
> AFAIK the quoted string can contain any chars except "\"", so that
> mail-extract-address-components doesn't parse the string correctly and
> delivers in the car a "1" instead a "1&1 Internet AG".

[...]

> According to that d38 ("&") has no special meaning.

It is not a bug but a feature in mail-extr.el. mail-extr-voodoo
intentionally chops off the trailing.  Unfortunately, in your case,
this is not a good feature.

While, gnus-extract-address-components just does what RFC0822 says.

ShengHuo




reply via email to

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