GNU bug report logs -
#26315
24.4; mail-header-parse-addres/ietf-drums-parse-address fails on UTF-8 string
Previous Next
Reported by: Łukasz Stelmach <steelman <at> post.pl>
Date: Thu, 30 Mar 2017 19:18:02 UTC
Severity: normal
Found in version 24.4
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26315 in the body.
You can then email your comments to 26315 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26315
; Package
emacs
.
(Thu, 30 Mar 2017 19:18:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Łukasz Stelmach <steelman <at> post.pl>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 30 Mar 2017 19:18:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Running the following lisp code:
(mail-header-parse-address "Łukasz Stelmach <steelman <at> post.pl>")
yields the error message:
Unknown symbol: Ł
and the invalid result:
("steelman <at> post.pl" . "ukasz Stelmach")
As far as I can tell this happens if the first character of the address
string is an UTF-8 (non-ascii?) one.
--
Było mi bardzo miło. --- Rurku. --- ...
>Łukasz< --- To dobrze, że mnie słuchasz.
[Message part 2 (application/pgp-signature, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26315
; Package
emacs
.
(Thu, 30 Mar 2017 20:33:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 26315 <at> debbugs.gnu.org (full text, mbox):
> From: Łukasz Stelmach <steelman <at> post.pl>
> Date: Thu, 30 Mar 2017 21:17:00 +0200
>
> Running the following lisp code:
>
> (mail-header-parse-address "Łukasz Stelmach <steelman <at> post.pl>")
>
> yields the error message:
>
> Unknown symbol: Ł
>
> and the invalid result:
>
> ("steelman <at> post.pl" . "ukasz Stelmach")
>
> As far as I can tell this happens if the first character of the address
> string is an UTF-8 (non-ascii?) one.
Why are you using that function? It assumes the non-ASCII characters
were rfc2047-encoded.
I suggest to use mail-extract-address-components instead.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26315
; Package
emacs
.
(Fri, 31 Mar 2017 06:56:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 26315 <at> debbugs.gnu.org (full text, mbox):
Dnia 30 marca 2017 o 22:32 Eli Zaretskii <eliz <at> gnu.org> napisał(a):
> > From: Łukasz Stelmach <steelman <at> post.pl>
> > Date: Thu, 30 Mar 2017 21:17:00 +0200
> >
> > Running the following lisp code:
> >
> > (mail-header-parse-address "Łukasz Stelmach <steelman <at> post.pl>")
> >
> > yields the error message:
> >
> > Unknown symbol: Ł
> >
> > and the invalid result:
> >
> > ("steelman <at> post.pl" . "ukasz Stelmach")
> >
> > As far as I can tell this happens if the first character of the
> > address
> > string is an UTF-8 (non-ascii?) one.
>
> Why are you using that function? It assumes the non-ASCII characters
> were rfc2047-encoded.
>
> I suggest to use mail-extract-address-components instead.
It's not me using it but Gnus in gnus-summary-limit-to-author and a few
other places. I receive the "Unknown symbol" when signing with gnupg,
too.
--
Miłego dnia,
Łukasz Stelmach
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26315
; Package
emacs
.
(Fri, 31 Mar 2017 08:01:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 26315 <at> debbugs.gnu.org (full text, mbox):
> Date: Fri, 31 Mar 2017 08:55:47 +0200 (CEST)
> From: Łukasz Stelmach <steelman <at> post.pl>
> Cc: 26315 <at> debbugs.gnu.org
>
> > Why are you using that function? It assumes the non-ASCII characters
> > were rfc2047-encoded.
> >
> > I suggest to use mail-extract-address-components instead.
>
> It's not me using it but Gnus in gnus-summary-limit-to-author and a few
> other places. I receive the "Unknown symbol" when signing with gnupg,
> too.
Then please show a recipe using Gnus to read or send messages that
fails due to this, then the Gnus maintainers will be able to look into
that. Please don't assume the problem is with this particular
function, the actual problem might be elsewhere.
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26315
; Package
emacs
.
(Fri, 31 Mar 2017 08:26:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 26315 <at> debbugs.gnu.org (full text, mbox):
Dnia 31 marca 2017 o 10:00 Eli Zaretskii <eliz <at> gnu.org> napisał(a):
> > Date: Fri, 31 Mar 2017 08:55:47 +0200 (CEST)
> > From: Łukasz Stelmach <steelman <at> post.pl>
> > Cc: 26315 <at> debbugs.gnu.org
> >
> > > Why are you using that function? It assumes the non-ASCII
> > > characters
> > > were rfc2047-encoded.
> > >
> > > I suggest to use mail-extract-address-components instead.
> >
> > It's not me using it but Gnus in gnus-summary-limit-to-author and a
> > few
> > other places. I receive the "Unknown symbol" when signing with
> > gnupg,
> > too.
>
> Then please show a recipe using Gnus to read or send messages that
> fails due to this, then the Gnus maintainers will be able to look into
> that. Please don't assume the problem is with this particular
> function, the actual problem might be elsewhere.
OK. Should I file another bug or "rename" this one?
Reply sent
to
Lars Ingebrigtsen <larsi <at> gnus.org>
:
You have taken responsibility.
(Fri, 31 Mar 2017 08:30:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Łukasz Stelmach <steelman <at> post.pl>
:
bug acknowledged by developer.
(Fri, 31 Mar 2017 08:30:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 26315-done <at> debbugs.gnu.org (full text, mbox):
Łukasz Stelmach <steelman <at> post.pl> writes:
> Running the following lisp code:
>
> (mail-header-parse-address "Łukasz Stelmach <steelman <at> post.pl>")
>
> yields the error message:
>
> Unknown symbol: Ł
This has been fixed in later versions of Emacs.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26315
; Package
emacs
.
(Fri, 31 Mar 2017 08:57:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 26315 <at> debbugs.gnu.org (full text, mbox):
On Fri, 31 Mar 2017 10:29:27 +0200 Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Łukasz Stelmach <steelman <at> post.pl> writes:
>
>> Running the following lisp code:
>>
>> (mail-header-parse-address "Łukasz Stelmach <steelman <at> post.pl>")
>>
>> yields the error message:
>>
>> Unknown symbol: Ł
>
> This has been fixed in later versions of Emacs.
On (nearly) current master I don't get an error but this:
("steelman <at> post.pl" . "ukasz Stelmach")
Is that correct?
Steve Berman
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26315
; Package
emacs
.
(Fri, 31 Mar 2017 09:00:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 26315 <at> debbugs.gnu.org (full text, mbox):
> Date: Fri, 31 Mar 2017 10:25:33 +0200 (CEST)
> From: Łukasz Stelmach <steelman <at> post.pl>
> Cc: 26315 <at> debbugs.gnu.org
>
> > > It's not me using it but Gnus in gnus-summary-limit-to-author and a
> > > few
> > > other places. I receive the "Unknown symbol" when signing with
> > > gnupg,
> > > too.
> >
> > Then please show a recipe using Gnus to read or send messages that
> > fails due to this, then the Gnus maintainers will be able to look into
> > that. Please don't assume the problem is with this particular
> > function, the actual problem might be elsewhere.
>
> OK. Should I file another bug or "rename" this one?
No need to file a new bug, you can use this one. Bonus points for
using "retitle" to make the title more accurate and mentioning Gnus.
See admin/note/bugtracker for how to use "retitle".
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26315
; Package
emacs
.
(Fri, 31 Mar 2017 09:35:01 GMT)
Full text and
rfc822 format available.
Message #31 received at 26315 <at> debbugs.gnu.org (full text, mbox):
Stephen Berman <stephen.berman <at> gmx.net> writes:
> On (nearly) current master I don't get an error but this:
>
> ("steelman <at> post.pl" . "ukasz Stelmach")
>
> Is that correct?
Yes. It's a function meant to be used to parse RFC2822 addresses, and
that's not a valid input.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 28 Apr 2017 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 111 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.