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

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

bug#33613: 25.2; mail-header-parse-address: scan-error "Unbalanced paren


From: Glenn Morris
Subject: bug#33613: 25.2; mail-header-parse-address: scan-error "Unbalanced parenthesis" 7 32
Date: Tue, 04 Dec 2018 14:03:05 -0500
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

micah anderson wrote:

>   mail-header-parse-address("dr ebs (\\_O<) <address@hidden>")

It could probably be handled more elegantly, but IIUC

"dr ebs (\\_O<) <address@hidden>"

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<)\" <address@hidden>")


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






reply via email to

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