Email mirror & quiet hours
SUPERINTENDENTHow email mirror works
When a messenger thread is created or replied to outside quiet hours:
- The Worker resolves the recipient list to email addresses (
resolveRecipientEmails) - Posts to Postmark Send Email API in batches of 50
- From:
noreply@pmsplanner.com(SPF + DKIM + Return-Path verified) - Subject:
[RAPAX PMS] <thread subject> - The
Tagheader carries the thread ID, enabling reply-to-thread on inbound
Quiet hours
23:00–08:00 Europe/Sofia. During quiet hours:
- Messages are still posted to the in-app thread (not blocked)
- Email mirror is suppressed — the message is logged with
quiet_hours_skipped: true - The morning digest at 08:00 sweeps the queue and dispatches a single combined email per recipient
Sandbox
If your Postmark token is in sandbox mode, the Worker accepts the 412 ACK without retrying. Useful for staging environments; production token is unsandboxed.
Reply via email
Reply to the mirrored email. The Tag header round-trips back to the Worker's inbound webhook (when configured); the Worker appends to the original thread.