From e347cf9ae25585677b8ae4b49cab7e87f56073f8 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Sat, 5 Jul 2025 18:09:14 +0200 Subject: [PATCH] fix --- src/message/mailbox/parsers/rfc2822.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/message/mailbox/parsers/rfc2822.rs b/src/message/mailbox/parsers/rfc2822.rs index 38214c5..ec711b9 100644 --- a/src/message/mailbox/parsers/rfc2822.rs +++ b/src/message/mailbox/parsers/rfc2822.rs @@ -120,7 +120,12 @@ pub(super) fn atom(input: &str) -> IResult<&str, String> { acc }), ), - |(_cfws, chars)| chars, + |(cfws, mut chars)| { + if let Some(cfws) = cfws { + chars.insert(0, cfws); + } + chars + }, ) .parse(input) }