agent-first-mail 0.3.0

Let your AI agent work your inbox — email pulled into plain files it reads, sorts, and drafts on your machine, with nothing sent until you confirm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::error::{AppError, Result};

pub(super) fn push_confirmed(dry_run: bool, confirm: bool) -> Result<bool> {
    if dry_run && confirm {
        return Err(AppError::new(
            "invalid_request",
            "--dry-run cannot be used with --confirm",
        ));
    }
    Ok(confirm)
}