pub struct IncomingMessage {
pub from: String,
pub rcpts: HashSet<String>,
pub raw: String,
pub client_ip: Option<IpAddr>,
pub helo_domain: Option<String>,
}Expand description
An incoming email message with connection metadata.
Represents a message received over SMTP before it is split into
per-recipient EmailMessage instances for routing.
Fields§
§from: StringEnvelope sender address.
rcpts: HashSet<String>Set of envelope recipient addresses.
raw: StringRaw message data (headers + content).
client_ip: Option<IpAddr>IP address of the connecting SMTP client.
helo_domain: Option<String>HELO/EHLO domain presented by the connecting client.
Implementations§
Source§impl IncomingMessage
impl IncomingMessage
Sourcepub fn to_email_message(&self, rcpt: &str) -> EmailMessage
pub fn to_email_message(&self, rcpt: &str) -> EmailMessage
Creates an EmailMessage for a specific recipient from this incoming message.
Trait Implementations§
Source§impl Clone for IncomingMessage
impl Clone for IncomingMessage
Source§fn clone(&self) -> IncomingMessage
fn clone(&self) -> IncomingMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for IncomingMessage
impl RefUnwindSafe for IncomingMessage
impl Send for IncomingMessage
impl Sync for IncomingMessage
impl Unpin for IncomingMessage
impl UnsafeUnpin for IncomingMessage
impl UnwindSafe for IncomingMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more