GNU bug report logs - #33613
25.2; mail-header-parse-address: scan-error "Unbalanced parenthesis" 7 32

Previous Next

Package: emacs;

Reported by: micah anderson <micah <at> riseup.net>

Date: Tue, 4 Dec 2018 16:40:02 UTC

Severity: minor

Tags: fixed

Found in version 25.2

Fixed in version 27.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: micah anderson <micah <at> riseup.net>
Cc: 33613 <at> debbugs.gnu.org
Subject: bug#33613: 25.2; mail-header-parse-address: scan-error "Unbalanced parenthesis" 7 32
Date: Tue, 04 Dec 2018 14:03:05 -0500
micah anderson wrote:

>   mail-header-parse-address("dr ebs (\\_O<) <dre <at> foo.net>")

It could probably be handled more elegantly, but IIUC

"dr ebs (\\_O<) <dre <at> foo.net>"

isn't valid in an email header, because the () are special characters
that should be quoted in the display name, per RFC5322.

Ie this works:

(mail-header-parse-address "\"dr ebs (\\_O<)\" <dre <at> foo.net>")


A nice summary at
https://stackoverflow.com/questions/24940588/validation-format-of-display-name-in-from-header





This bug report was last modified 5 years and 300 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.