mailcycle 0.7.0

Rust email API client: create addresses that receive email, read and decrypt messages on your machine, send email, verify webhooks and stream events.
Documentation
//! Mailcycle for Rust.
//!
//! Privacy-first email you can automate. Create addresses that receive mail,
//! read and decrypt it on your own machine, send, and listen for events.
//!
//! ```no_run
//! use mailcycle::{Mailcycle, NewAddress, WaitFor};
//!
//! # fn main() -> mailcycle::error::Result<()> {
//! let mc = Mailcycle::sign_in(&std::env::var("MAILCYCLE_PHRASE").unwrap(), Default::default())?;
//! let address = mc.addresses().create(NewAddress {
//!     label: Some("Sign-in codes".into()),
//!     ..Default::default()
//! })?;
//!
//! let message = mc.messages().wait_for(WaitFor {
//!     address_id: Some(&address.id),
//!     ..Default::default()
//! })?;
//! println!("{}: {}", message.subject, message.text);
//! # Ok(()) }
//! ```
//!
//! The recovery phrase never leaves this machine. Mail is sealed to a key
//! derived from it, so the API serves ciphertext it cannot read, and this
//! crate opens it locally. Lose the phrase and the mail is gone; nobody at
//! Mailcycle can help.
//!
//! Documentation: <https://docs.mailcycle.email/>

pub mod client;
pub mod crypto;
pub mod encoding;
pub mod error;
pub mod events;
pub mod http;
pub mod keys;
pub mod mail;
pub mod manage;
pub mod models;
pub mod pairing;
pub mod trackers;
pub mod webhooks;

pub use client::{Mailcycle, NewAddress, Options, Outgoing, OutgoingAttachment, WaitFor};
pub use crypto::mnemonic::{generate_phrase, validate_phrase};
pub use error::{Error, PhraseProblem, Result};
pub use events::{EventStream, Hooks};
pub use keys::Keys;
pub use manage::{ApiKeys, Sessions, Webhooks};
pub use models::{
    Account, AccountEvent, ActivityEntry, ActivityPage, Address, AddressKeyExport, ApiKey, Attachment,
    CreatedApiKey, CreatedWebhook, DeliveryPage, Device, Domain, Message, MessagePage, NameStyle, Plan,
    QueuedDelivery, SendResult, Session, Subscription, Webhook, WebhookDelivery, WebhookList, WebhookUpdate,
};
pub use pairing::{parse_scanned_value, KeyBundle, ScannedPairing};
pub use trackers::{strip_remote_content, summarize_blocked, BlockedTracker, StripResult};
pub use webhooks::{verify_webhook_signature, verify_webhook_signature_now, webhook_signature_header};