Fix the data-line parsing
This commit is contained in:
parent
5ad4eba90d
commit
b15c236da2
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ use super::{
|
||||||
};
|
};
|
||||||
use crate::{Address, AuthResult, FilterKind, FilterPhase, MailResult, Method};
|
use crate::{Address, AuthResult, FilterKind, FilterPhase, MailResult, Method};
|
||||||
use nom::branch::alt;
|
use nom::branch::alt;
|
||||||
use nom::bytes::streaming::{tag, take_while1};
|
use nom::bytes::streaming::{tag, take_while, take_while1};
|
||||||
use nom::combinator::{map_res, opt};
|
use nom::combinator::{map_res, opt};
|
||||||
use nom::IResult;
|
use nom::IResult;
|
||||||
use std::net::SocketAddr;
|
use std::net::SocketAddr;
|
||||||
|
@ -34,7 +34,7 @@ pub(crate) fn parse_filter_connect(
|
||||||
|
|
||||||
pub(crate) fn parse_filter_data_line(input: &[u8]) -> IResult<&[u8], &[u8]> {
|
pub(crate) fn parse_filter_data_line(input: &[u8]) -> IResult<&[u8], &[u8]> {
|
||||||
let (input, _) = parse_delimiter(input)?;
|
let (input, _) = parse_delimiter(input)?;
|
||||||
let (input, s) = take_while1(is_body_char)(input)?;
|
let (input, s) = take_while(is_body_char)(input)?;
|
||||||
let (input, _) = parse_eol(input)?;
|
let (input, _) = parse_eol(input)?;
|
||||||
Ok((input, s))
|
Ok((input, s))
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue