Expand description
§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"));§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.
Structs§
- InReply
To - In-Reply-To message id wrapper.
- Message
Id - Message-ID value rendered with angle brackets.
- Message
IdDomain - Message-ID domain part.
- Message
IdLocal - Message-ID local part.
- References
- Ordered References header values.
- Thread
Reference - Simple thread reference path rooted at one message id.
Enums§
- Message
IdError - Error returned when message identity primitives fail validation.