diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/email.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/email.scm b/tests/email.scm index dd305b6..972233d 100644 --- a/tests/email.scm +++ b/tests/email.scm @@ -1,6 +1,6 @@ ;;; guile-email --- Guile email parser ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> -;;; Copyright © 2018, 2019, 2020, 2021, 2023 Arun Isaac <arunisaac@systemreboot.net> +;;; Copyright © 2018, 2019, 2020, 2021, 2023, 2025 Arun Isaac <arunisaac@systemreboot.net> ;;; Copyright © 2023 Andrew Whatson <whatson@tailcall.au> ;;; ;;; This file was adapted from guile-debbugs and is part of guile-email. @@ -594,6 +594,10 @@ Content-Type: text/plain; charset=utf-8 (parse-email-address "Foo(Bar <foo@example.com>") '((name . "Foo(Bar") (address . "foo@example.com"))) +(test-equal "tolerate email addresses with square brackets in name" + (parse-email-address "Foo [Bar] <foo@example.com>") + '((name . "Foo [Bar]") (address . "foo@example.com"))) + ;;; ;;; MIME encoded words |