use-email-id 0.1.0

Email Message-ID and threading primitives for RustUse
Documentation
  • Coverage
  • 100%
    34 out of 34 items documented1 out of 29 items with examples
  • Size
  • Source code size: 14.06 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 850.67 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-email
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-email-id

Message identity and threading primitives for RustUse.

Experimental

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

Example

use use_email_id::{InReplyTo, MessageId, References};

let root: MessageId = "<root@example.com>".parse()?;
let reply: MessageId = "reply@example.com".parse()?;
let references = References::new().with_message_id(root.clone()).with_message_id(reply.clone());
let in_reply_to = InReplyTo::new(root);

assert_eq!(reply.to_string(), "<reply@example.com>");
assert_eq!(references.len(), 2);
assert!(in_reply_to.to_string().contains("root@example.com"));
# Ok::<(), use_email_id::MessageIdError>(())

Scope

  • Message-ID local/domain wrappers and angle-bracket formatting.
  • References, In-Reply-To, and thread reference containers.
  • Conservative validation for typed identity strings.

Non-goals

  • Message store or mailbox threading algorithms.
  • Global uniqueness guarantees.
  • Complete RFC parser behavior.

License

Licensed under either Apache-2.0 or MIT.