Link pubblici nativi per scaricare i file archiviati

Related to #1952, we would like to propose native public download links for files stored in Stalwart.

The initial scope would be:

  • Authenticated creation and revocation of links for individual files.
  • Read-only downloads through unguessable tokens, without requiring recipients to have a Stalwart account.
  • Expiration and administrator controls.
  • Invalidation when the file is replaced or deleted.

Files would remain managed through the existing FileNode and blob APIs, preserving quotas, permissions and JMAP change tracking. Public downloads would use a dedicated endpoint, leaving authenticated JMAP access unchanged.

One possible use case is a composer automatically storing large attachments in Stalwart and inserting download links into the email. That client-side automation would be a separate step.

We are willing to undertake the development. Since this introduces a significant new access mechanism, we would first like to confirm that it aligns with the project’s direction and agree on the scope and API before investing in implementation.

Would this approach be welcome, and are there architectural constraints you would want us to follow?