Struct mpot_gen::mail::message_filters::FixCRLF
source · pub struct FixCRLF;
Expand description
Ensure message contains only \r\n
line terminators, required by SMTP.
Trait Implementations§
source§impl PostFilter for FixCRLF
impl PostFilter for FixCRLF
source§fn feed<'p, 'list>(
self: Box<FixCRLF, Global>,
post: &'p mut Post,
ctx: &'p mut ListContext<'list>
) -> Result<(&'p mut Post, &'p mut ListContext<'list>), ()>
fn feed<'p, 'list>( self: Box<FixCRLF, Global>, post: &'p mut Post, ctx: &'p mut ListContext<'list> ) -> Result<(&'p mut Post, &'p mut ListContext<'list>), ()>
Feed post into the filter. Perform modifications to
post
and / or
ctx
, and return them with Result::Ok
unless you want to the
processing to stop and return an Result::Err
.