core icon indicating copy to clipboard operation
core copied to clipboard

Add Inbound Mail feature to Windshift

Open chrweiss123 opened this issue 2 months ago • 1 comments

Feature request: Inbound email channel (create and update work items via email)

Summary

Windshift can already send email notifications via SMTP, but there is no way to receive email. I'd like to request an inbound email channel: messages sent to a configured mailbox become work items, and replies to those messages are added as comments to the existing item.

Use case / motivation

We are a non-profit youth organisation evaluating Windshift as a replacement for our current helpdesk (Zammad). Windshift's UI and workflow model fit our team much better, and the customer portal is a great start. However, most of our requests arrive by email (members, volunteers, external partners), and many requesters will never use a portal. Without an inbound email channel, Windshift cannot replace a helpdesk for us.

Since Windshift already imports Jira Service Management portals and customers, an email channel similar to JSM's would also close a gap for teams migrating from JSM.

Proposed behaviour

1. Mailbox configuration (admin)

  • Configure one or more inbound mailboxes per workspace (or per customer portal).
  • Fetch via IMAP (with TLS, polling interval configurable); optionally IMAP IDLE.
  • Per mailbox: target workspace, default item type, default status/priority, optional default assignee or group.
  • Processed messages are marked as read or moved to a configurable folder (no deletion by default).

2. New email → new work item

  • Subject → title, body → description (plain text, or sanitized HTML converted to Markdown).
  • Attachments → work item attachments (respecting the existing size limits).
  • Sender is matched to an existing portal customer/user by address, or created as a new portal customer (configurable: allow unknown senders / allowlist of domains / reject).

3. Reply → comment on existing item

  • Threading via In-Reply-To / References headers, with a fallback on the item key in the subject (e.g. [TICK-123]).
  • Quoted previous content is stripped where possible.

4. Outbound replies to the requester (closes the loop)

  • Agents can reply to the requester from the work item; the reply is sent by email with proper Message-ID / References, so the requester's answer threads back into the same item.
  • Internal comments stay internal.

5. Safety and loop protection

  • Ignore auto-replies and bounces (Auto-Submitted, Precedence: bulk/auto_reply, X-Autoreply, MAILER-DAEMON).
  • Rate limit per sender; do not send notifications in response to auto-generated mail.
  • Optional: honour the receiving server's Authentication-Results (reject or flag mails failing DMARC).
  • HTML is sanitized before rendering.

Possible scope for a first version

A minimal first iteration covering points 1–3 (IMAP polling, new item from email, replies as comments) would already make Windshift usable as a helpdesk for many teams. Outbound replies (4) could follow in a second step.

Alternatives considered

  • External glue (e.g. an n8n workflow polling IMAP and calling the REST API): possible, but threading, attachment handling and loop protection have to be rebuilt by every team, and replies to the requester are not covered.
  • Running a separate helpdesk next to Windshift: this is what we want to avoid.

chrweiss123 avatar Oct 02 '26 17:10 chrweiss123

Hey @chrweiss123 thank you for the suggestion! We are in fact working on exactly this for version 0.9.0 at the moment.

stefan-ernst avatar Oct 02 '26 18:10 stefan-ernst