emacs-devel
[Top][All Lists]
Advanced

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

Re: Problems in parsing message's "From" header


From: Teemu Likonen
Subject: Re: Problems in parsing message's "From" header
Date: Mon, 22 Jun 2009 13:58:57 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

On 2009-06-22 10:56 (+0300), Teemu Likonen wrote:

> But if there are some non-latin letters it fails to parse the name
> part, for example:
>
>     (mail-header-parse-address "Γιώργος Σεφέρης <address@hidden>")
>     => ("address@hidden")

OK, I found another function, mail-extract-address-components, which can
parse the above address string:

    (mail-extract-address-components "Γιώργος Σεφέρης <address@hidden>")
    => ("Γιώργος Σεφέρης" "address@hidden")

So, my problem actually went away. It's probably time to say the usual
"sorry for the noise", from my part at least. :-)

The problem in mail-header-parse-address is probably valid anyway:

>     (mail-header-parse-address 
>      (mail-header-from message-reply-headers))
>
> Vector message-reply-headers has message's "From" field but person's
> name is not enclosed in double quotes. Hence mail-header-parse-address
> fails to parse the name.
>
> So, is this bug or "non-ideal behaviour" (a) in the function
> mail-header-parse-address (b) in the code which produces the vector
> message-reply-headers or (c) in the code which puts the "From" field
> in the buffer in the first place? About the item "c" I should add that
> in Gnus's Article buffer there are no double quotes around person's
> name.
>
> Thanks. I'm using up-to-date Emacs CVS/Git version:
>
>     GNU Emacs 23.1.50.3 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of
>     2009-06-22 on mithlond




reply via email to

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