aboutsummaryrefslogtreecommitdiff
path: root/email
diff options
context:
space:
mode:
authorArun Isaac2021-03-15 01:51:43 +0530
committerArun Isaac2021-03-15 01:55:11 +0530
commitca0520a33c9042a68691d85c6849f88412ca8357 (patch)
tree514701b909d8138a274211186b32fcfc673db0ed /email
parent03e9cacb826bd4a56d3d834fe5526e497d7c57eb (diff)
downloadguile-email-ca0520a33c9042a68691d85c6849f88412ca8357.tar.gz
guile-email-ca0520a33c9042a68691d85c6849f88412ca8357.tar.lz
guile-email-ca0520a33c9042a68691d85c6849f88412ca8357.zip
email: Use only cfws-captured-words in obs-phrase.
* email/email.scm (obs-phrase): Replace word with cfws-captured-word. * tests/email.scm ("Parse names with more than two words"): New test.
Diffstat (limited to 'email')
-rw-r--r--email/email.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/email/email.scm b/email/email.scm
index 631d519..3f4e194 100644
--- a/email/email.scm
+++ b/email/email.scm
@@ -1,5 +1,5 @@
;;; guile-email --- Guile email parser
-;;; Copyright © 2018, 2019, 2020 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2018, 2019, 2020, 2021 Arun Isaac <arunisaac@systemreboot.net>
;;;
;;; This file is part of guile-email.
;;;
@@ -224,7 +224,7 @@
(define-word-pattern cfws-captured-word cfws-captured-atom)
(define-peg-pattern obs-phrase body
- (and cfws-captured-word (* (or "." cfws word))))
+ (and cfws-captured-word (* (or cfws-captured-word "." cfws))))
;; We set phrase to be the same as obs-phrase since, according to
;; their definitions in RFC5322, all phrases are obs-phrases.