{
    "name": "Xenoptics Mail Staging Redirect",
    "version": "19.0.1.1.0",
    "summary": "Redirect ALL outgoing email to a single test address during migration testing",
    "description": """
Safety net for the XENHR -> Odoo migration testing phase: every outgoing
email (leave notifications, allocation approvals, password resets,
digests -- anything sent through ir.mail_server, regardless of which
higher-level model built it) is redirected to a single test address
instead of the real recipient, so testing leave/attendance/other features
never confuses or spams a real employee.

Controlled entirely by the system parameter xeno_mail_staging.redirect_to
(Settings > Technical > System Parameters). Set it to the test address to
enable redirection; delete it (or blank it) to send to real recipients
again -- e.g. before cutover. No code change needed either way.

The original recipient is preserved in an X-Xeno-Original-To header and
prefixed onto the subject line, so the redirected inbox can still tell
who an email was actually meant for.

xeno_mail_staging.exempt_emails (comma-separated real addresses) lets
specific recipients receive mail for real while everyone else still gets
redirected -- e.g. an approver who now has a working login and needs to
actually receive their approval-step emails ahead of the rest of the
company. Only applies when every recipient of a message is on the list.
""",
    "author": "Xenoptics",
    "license": "LGPL-3",
    "category": "Technical",
    "depends": ["base", "mail"],
    "data": [
        "data/mail_staging_data.xml",
    ],
    "installable": True,
    "application": False,
}
