Skip to content

Commit

Permalink
fix: Don't log Rectified missing text to \"...\" unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
duesee committed Oct 10, 2023
1 parent 6a3a3be commit c201cb3
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions imap-codec/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,11 @@ pub(crate) fn resp_text(input: &[u8]) -> IMAPResult<&[u8], (Option<Code>, Text)>
#[cfg(feature = "quirk_missing_text")]
alt((
preceded(sp, text),
value(
{
log::warn!("Rectified missing `text` to \"...\"");
map(peek(crlf), |_| {
log::warn!("Rectified missing `text` to \"...\"");

Text::unvalidated("...")
},
peek(crlf),
),
Text::unvalidated("...")
}),
)),
))(input)
} else {
Expand Down

0 comments on commit c201cb3

Please sign in to comment.