Skip to main content

Crate use_email_envelope

Crate use_email_envelope 

Source
Expand description

§use-email-envelope

SMTP envelope identity and path primitives for RustUse.

§Experimental

use-email-envelope is experimental while use-email remains below 0.3.0.

§Example

use use_email_envelope::{Envelope, EnvelopeRecipient, EnvelopeSender};

let envelope = Envelope::new(EnvelopeSender::new("bounce@example.com")?)
    .with_recipient(EnvelopeRecipient::new("jane@example.com")?);

assert_eq!(envelope.sender().to_string(), "<bounce@example.com>");
assert_eq!(envelope.recipients().len(), 1);

§Scope

  • Reverse-path, forward-path, MAIL FROM, RCPT TO, envelope sender, recipient, and envelope containers.
  • SMTP envelope identity modeled separately from visible message headers.

§Non-goals

  • SMTP client behavior.
  • Bounce processing.
  • Delivery tracking.

§License

Licensed under either Apache-2.0 or MIT.

Structs§

Envelope
SMTP envelope with transport sender and recipients.
EnvelopeAddress
SMTP envelope address. This is transport identity, not a visible header mailbox.
EnvelopeRecipient
Envelope recipient path.
EnvelopeSender
Envelope sender path.
ForwardPath
SMTP forward-path.
MailFromPath
MAIL FROM path wrapper.
RcptToPath
RCPT TO path wrapper.

Enums§

ReversePath
SMTP reverse-path, including the null reverse-path.