Skip to content

Inbox 0.4.0: Attachments in Media and support for core 3

Inbox 0.4.0 runs on PhoenixKit core 3, shows mail attachments in Media as a read-only library filed by mailbox and message, and keeps open mail pages in step when someone’s access changes.

Attachments in Media

On a core with managed libraries, the attachments library now appears in Media as Mail attachments. Nobody can change, delete, move or rename its files there, the Owner included. Files are filed in folders: mailbox, then month, then the date, time and subject of the message. A draft’s new files go under the mailbox’s Drafts folder.

Who sees the library is set with config :phoenix_kit_inbox, media_listing:. The default, :uploaders, shows Owner and Admin every file, and other holders of the media permission the files they uploaded. :admins, :own_only and :none are the other choices. Media does not ask your attachment_policy, so a site that hides files from its administrators should pick :own_only or :none. library_name: renames the library and attachment_folder: replaces the mailbox and month levels with your own folders.

Where the core has Storage.link_copy/3, a snapshot of a file already in Media shares its stored objects instead of copying the bytes. A new task, mix phoenix_kit_inbox.relink_attachments, moves older snapshots onto shared objects and files earlier messages, as a dry run first and then in two phases driven by a manifest file.

Open pages follow access changes

Inbox, Compose, Mailboxes and the mail settings page now react without a reload when a permission, grant, archive or sender changes. A user who loses a mailbox is told so and taken back to their own, and a compose form keeps the typed text but falls back to a sender and Reply-To still allowed, with a message saying so.

Compose now sends and saves in the background, with Sending… and Saving… on the buttons. If a send fails, the text and files stay in the form. In the reading pane and in compose, a file your attachment_policy refuses shows as Attachment not available, with no name or link.

Notification links

A new config :phoenix_kit_inbox, notification_link: lets a site send a reader’s in-app notification somewhere other than the Inbox pages. The default link now carries the site’s URL prefix and the reader’s locale.

Upgrading

Inbox 0.4 accepts PhoenixKit core from 2.64.0 up to, but not including, 4.0, so it now works with core 3.x. No new migration. Existing attachments keep working as they are; run mix phoenix_kit_inbox.relink_attachments (a dry run by default) only if you want them filed and deduplicated. Keep a database dump before its --apply phase.

Full release notes: Inbox 0.4.0

0.4.0 · 27 October 2026

Changed

  • Core pin widened to accept core 3.x (ceiling < 4.0.0; the floor is unchanged).

  • Tests build phoenix_kit_email_logs by running the Emails module’s chain (phoenix_kit_emails is a test-only dependency); core 3.0 no longer creates it. Hosts without Emails are unaffected.


Inbox 0.4.0. Install or update: {:phoenix_kit_inbox, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.