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) }