Skip to content

Releases

v0.6.2: Node.js security rebuild (CVE-2026-111497)

Choose a tag to compare

@weishest weishest released this 24 Oct 15:15
1903f17

This release rebuilds the Docker image on a Node.js version that fixes CVE-2026-111497, an out-of-bounds write in the Brotli decoder bundled with Node.js. No application code changed between v0.6.1 and v0.6.2; the difference is the runtime inside the image.

It is recommended for all users to upgrade to the latest version of Open Archiver (v0.6.2) to include the security fix.

What happened

On 21 October 2026 the Node.js project published security releases 22.23.4, 24.22.1 and 26.12.1. One of the fixes closes a flaw in the bundled Brotli decoder: malformed compressed input could write past an internal buffer, which, known as CVE-2026-111497, can crash the process, disclose memory or allow remote code execution. Node.js decompresses Brotli whenever an application asks it to, and Open Archiver asks it to in two places:

  • Incoming requests. Express decodes request bodies sent with Content-Encoding: br on every endpoint, including sign-in, and the web interface forwards request bodies to the API unchanged. An unauthenticated client on the web port could therefore reach the decoder.
  • Outgoing requests. Mail fetched from Microsoft 365, Google Workspace and JMAP servers, text extraction through Tika, and the update check against GitHub all decompress Brotli responses when the server sends them.

The same flaw has since been reported in other software that bundles Google's Brotli decoder. The other services in the bundled compose file are not affected by it: PostgreSQL and Valkey do not decode Brotli, and Meilisearch and Apache Tika use their own Rust and Java implementations rather than the C library the advisory names. A reverse proxy or load balancer placed in front of Open Archiver is not part of this image; check its vendor's advisory separately.

How to upgrade

  • Docker installs: Use the latest tag of Open Archiver in your Docker Compose file. Then pull and restart.

    docker compose pull
    docker compose up -d
    
  • Installs that run from source: run Node.js 22.23.4, 24.22.1 or 26.12.1, or any newer release of those lines. Node.js 20, 23 and 25 are end of life and will not receive the fix.

Confirm with docker exec open-archiver node --version, which should print v22.23.4 or newer.

Build changes

  • Each build pulls the node:22-alpine base image afresh instead of reusing a cached copy, so a rebuild always picks up the current patch release.

Full changelog: v0.6.1...v0.6.2

v0.6.1: JMAP Ingestion, Wildcard Search Filters, and Ingestion Accuracy

Choose a tag to compare

@weishest weishest released this 20 Oct 13:36
597c9c8

This release adds JMAP as an ingestion provider, allows address filters in advanced search to match a whole domain or a name at any domain using wildcards, moves the date format into system settings, and corrects a number of cases where mail was archived with the wrong date, archived twice, or not archived at all. The new version also supports Apache Tika 4, which is now the bundled text extractor.

Highlights

JMAP mailboxes can now be archived

A new JMAP provider archives a mailbox from any server that speaks JMAP, including Fastmail, Stalwart, Cyrus IMAP and Apache James. It signs in with an API token or with a password or app password, and reads the mailbox without ever writing to it.

image

See the new JMAP guide for Fastmail and Stalwart setup.

Wildcards in search

Every address filter in advanced search, including the exclude filters, now accepts two patterns: *@example.com matches every address at the given domain, and name@* matches that name at any domain.

The patterns apply to mail indexed from this version on. A Full rebuild on Admin → Index applies them to older mail.

The date format is now an organisation-wide setting

Dates and times across the archive, search results, email details and the audit log are shown in a format chosen once by an administrator on the System Settings page: following the interface language, ISO 8601, European, or US. The ISO 8601 option shows the time with its UTC offset, so an audit entry reads the same for reviewers in different time zones.

Search and indexing

  • Emails missing from search can be found and re-indexed. Some emails are marked as indexed but have no entry in the search engine, most of them left behind by the v0.5.1 upgrade, and the automatic self-healing never looked at them. A new Verify index coverage action on Admin → Index checks every indexed email against the search engine and queues the missing ones. Nothing is deleted. It needs Meilisearch 1.14 or newer, which the bundled compose file already provides.
  • Apache Tika 4 is the bundled text extractor. The compose file now ships Tika 4.1.0. A busy Tika server is retried instead of being recorded as an empty result, and a document that Tika could only partly read keeps the text it managed to extract. Instances that point TIKA_URL at their own Tika 3 keep working: the server's version is read on first use and the right request is sent to each.
  • One attachment with malformed text no longer holds up a batch. Text extracted from some attachments contained characters the search engine rejected, which failed every document sent alongside it until the offender was isolated (#472).
  • A PDF with an oversized image no longer hangs the indexing worker. The built-in PDF parser looped forever on such files and the worker sat at full CPU until it was killed (#497). These files are now skipped and logged.

Ingestion

  • IMAP initial imports on providers with account-wide message numbering take minutes, not hours. On web.de, GMX and similar servers the first message in a folder can sit tens of millions of positions above the start, and the connector used to walk every one of them. It now asks the server which messages exist (#483).
  • Emails are archived with their own date. When an email's Date header used a time-zone name such as CEST, a localised month name, or was missing, the email was archived as sent at the moment it was fetched, and so was its stored copy (#372). The date is now read from the header as written, then from the delivery trail, then from the provider's record, and only then from the clock.
  • Two workers archiving the same message no longer overwrite each other's stored file. When one message reached two mailboxes of a merge group, or a job was redelivered after a stall, the second writer replaced the first's file while each row kept its own checksum, and every row but the last writer's then failed its integrity check. A stored file is now never overwritten.

Administration and security

  • A Seats page on the Admin menu shows how many seats an Enterprise licence would need, calculated from the mailboxes already in the archive, with the mailboxes listed and classified as person, shared, room or equipment. Nothing is reported or enforced in the open-source edition; the page exists so the number is known before a licence is chosen.

Interface

  • Multi-language translation is complete. All language translations are now complete based on English.

Deployment and operations

  • Containers no longer download dependencies when they start. Production dependencies are now part of the Docker image, built for the image's own architecture, so a container boots without reaching the npm registry (#481). The pinned pnpm was also moved to a release that includes several security fixes.
  • Database passwords with special characters work in DATABASE_URL. The password was encoded twice, so a password containing @ or similar characters was sent to Postgres in the wrong form (#493).
  • The RETENTION_BATCH_SIZE example in .env.example now matches its documented default of 100 (#490).

Upgrade notes

  • Apache Tika 4. Compose deployments pick up the new image with docker compose pull. If TIKA_URL points at a Tika server you run yourself, both 3.x and 4.x are supported and the version is detected on first use; TIKA_API_VERSION (3 or 4) can force it if a proxy hides the server's version endpoint. The Tika image is no longer published for 32-bit ARM.
  • Verify index coverage needs Meilisearch 1.14 or newer. The Docker Compose file ships 1.38.
  • Wildcard address filters apply to mail indexed from this version on; run a Full rebuild on Admin → Index to cover older mail.
  • Date format. The per-browser preference from the account page is gone; an administrator chooses the format once under System Settings, and the default follows the interface language.

Contributors

  • @weishest — JMAP ingestion, wildcard search filters, system-wide date format and settings hardening, index verification, the ingestion and indexing corrections above, Tika 3 and 4 compatibility, Seats page, Docker image and translations.
  • @morph027 — Apache Tika 4 support with an integration test and CI workflow (#492).
  • @kisst — user-selectable date format, the basis for the system-wide setting (#469).
  • @raubinpierce — Google OAuth Mailbox refresh token (#478).
  • @egezamb — DATABASE_URL password encoding (#493).
  • @JulianFriedle — error logging at startup (#484).

Thanks to everyone who reported the issues that shaped this release.

Full changelog: v0.6.0...v0.6.1

v0.6.0: Two-factor authentication, OAuth mailbox ingestion, and ingestion reliability

Choose a tag to compare

@weishest weishest released this 24 Aug 10:31
704a586

This release brings two-factor authentication into the open-source edition, adds an OAuth-based ingestion source that adds support for Outlook.com and other accounts that require OAuth, adds more robust ingestion and indexing, and closes a list of ingestion and indexing issues.

Highlights

Two-factor authentication is now available in the open-source edition

TOTP two-factor authentication was previously only available in the Enterprise advanced-security module. Its core now ships in the backend and works in every deployment, including open-source installations.

image

Users enrol from their account settings by scanning a QR code and confirming with a code from their authenticator, and receive eight single-use backup codes. Signing in as an enrolled user issues a short-lived pending session that is exchanged for full access once a valid code is supplied.

The Enterprise Edition retains the organisation-wide policy layer on top: the feature switch, mandatory enforcement for all users, and the grace window for enrolment.

OAuth Mailbox: a single-mailbox source that supports Outlook.com

image

Microsoft has retired basic authentication for personal accounts, which means Outlook.com, Hotmail and Live.com mailboxes can no longer be added as Generic IMAP sources at all. The new OAuth Mailbox provider archives a single mailbox using an OAuth sign-in instead of a stored password.

  • Two sign-in methods. Either redirect to the provider in the browser, or display a short code to enter on another device — the second option works for instances that are not reachable from the public internet.
  • Built-in Microsoft presets for personal accounts (Outlook.com, Hotmail, Live.com) and for a single mailbox inside a Microsoft 365 organization. Both read mail over Microsoft Graph, because Microsoft refuses IMAP sessions on personal mailboxes unpredictably while the same account answers every Graph request.
  • A Custom preset for any other server that accepts IMAP XOAUTH2, with Gmail documented as a worked example.
  • Tokens are stored encrypted and refreshed automatically during syncing. A source whose authorization expires or is revoked reports that plainly and offers a Re-authorize action rather than failing silently.

Use OAuth Mailbox to archive one person's mailbox. To archive an entire organization, the existing Microsoft 365 and Google Workspace providers remain the right choice.

Access control and roles

  • A visual role policy editor. Roles can now be built from action and subject pickers with condition rows that prepopulate from real data — ingestion sources by name, mailboxes by address, and the signed-in user. The visual editor is an Enterprise Edition feature, and open-source builds explain this on the tab and keep the JSON editor fully usable.
  • Permission checks now apply to the individual record. Routes acting on a single ingestion source, archived email or stored file previously checked only whether a role could act on that type of resource. A role scoped to one ingestion source could reach any other, and a mailbox-scoped role could download any stored file whose path it could guess. These routes now load the record and check against it.
  • The users endpoint no longer returns sensitive columns. It previously included the password hash, encrypted two-factor secret and backup codes to any role with read access on users, which the shipped Read-only role grants. It now returns public fields only.

Search indexing

  • Orphaned search entries can be cleaned up. When an email or an ingestion source was deleted but the search index was not updated, the index kept entries for emails that no longer existed and search returned results that could not be opened. A clean up feature in the Index page can remove orphaned index documents.

Performance

Indexing and ingestion both processed one item at a time while spending most of that time waiting on storage, the search engine or the mail provider. The indexing worker now processes several jobs at once and builds the next batch of documents while the previous one is being confirmed, and a mailbox archives several emails concurrently. Deduplication guarantees are unchanged: emails sharing a Message-ID are still processed one after another, and emails are marked as indexed only after the search engine confirms the write.

Two settings control this — INDEXING_WORKER_CONCURRENCY (default 4) and INGESTION_EMAIL_CONCURRENCY (default 3). Both are validated on startup and rejected with a warning if set to something unusable.

Bug fixes

  • A fresh Docker installation could not start (#347, #448). The example environment file set a Redis username that the bundled Valkey server does not have, so every queue and worker was refused on connection. The variable is now commented out and the Redis password has a default. Existing installations are unaffected.
  • The setup page was unreachable on a new installation (#421). When the API could not be reached, the interface sent users to the sign-in page instead. It now reports that the API is unavailable. The status endpoint also used to create the first administrator from environment variables; that account is now created only on the setup page.
  • Unsent drafts are no longer archived from live mailboxes (#447, #287). Auto-saved drafts could leave twenty or more copies of a single message. On many IMAP servers, a draft archived first caused the finished message to be discarded as a duplicate. Drafts are now skipped. Set ARCHIVE_DRAFTS=true to keep archiving them.
  • Overlapping sync cycles archived the same email twice. Sources covering one mailbox reported different email counts while all of them reported success. Two cycles could run over the same source at once, and that is now prevented. Existing copies are left in place.
  • Sources could stop syncing while still showing "syncing". A worker that stopped at the wrong moment left a source that nothing picked up again. On one instance this went unnoticed for four months. Such sources are now released and retried on the next cycle.
  • Microsoft 365 re-downloaded mail that was already archived (#428). Microsoft changes a message identifier when the message moves between folders, so the stored identifiers no longer matched. Requests now ask for identifiers that survive folder moves. Existing sources keep their sync position and no resynchronisation is needed.
  • Microsoft 365 tenants with guest accounts failed every sync cycle (#351). Guests invited to Teams or SharePoint have no mailbox, but were listed as mailboxes to archive, and one failure marked the whole cycle failed. Guests are now excluded. An account with no mailbox is recorded as skipped and named in the status message.
  • One provider error could cost an entire mailbox (#441, #443). Google Workspace stopped the whole mailbox after a single Gmail error. Microsoft 365 dropped the message instead and recorded nothing. Both now retry, skip what cannot be fetched, and recover from an expired sync marker.
  • Emails with very long Message-IDs were never archived (#440). A malformed header running to kilobytes exceeded a database limit, so the email failed on every attempt. These keys are now shortened. The stored .eml keeps the header exactly as it arrived.
  • One malformed PDF could stop all indexing. A scanned document used memory faster than it could be parsed and terminated the indexing worker, taking every job in progress with it. Parsing now stops properly on timeout and a memory guard abandons a parse that grows too far.
  • Indexing stopped without reporting anything (#227, #284, #285). The worker could run out of memory or stop taking jobs while the process stayed alive, and reindexing kept reporting success. Documents are now built in smaller batches, a worker that stops taking jobs is restarted, and a short search engine outage no longer removes emails from search.

Upgrade notes

  • New environment variables, all optional with working defaults: ARCHIVE_DRAFTS, INDEXING_WORKER_CONCURRENCY, INGESTION_EMAIL_CONCURRENCY, MEILI_INDEXING_CHUNK, INDEXING_MAX_TEXT_BYTES, INDEXING_WORKER_MAX_OLD_SPACE_MB, and PDF_PARSE_HEAP_BUDGET_RATIO. See the installation guide for the full list.
  • Existing duplicate emails are not removed. The overlapping-sync fix stops new duplicates from being created but deliberately leaves existing copies in place, since removing archived mail is not something an upgrade should do on its own.
  • ADMIN_EMAIL and ADMIN_PASSWORD are no longer used. Very early versions created the administrator account from these variables, and a compatibility shim kept honouring them. That shim has been removed, and the first administrator is created only on the setup page. If your .env still defines them they are ignored and can be deleted. Existing installations are unaffected, because the account is stored in the database.

Contributors

  • @weishest / wayneshn — two-factor authentication, OAuth Mailbox ingestion, role policy editor and permission scoping, index maintenance, ingestion and indexing reliability, and performance work.
  • @EddMCambs — Meilisearch upgrade guide (#444), and contributions to the indexing and performance work.

Thanks to everyone who reported the issues that shaped this release.

Full Changelog: v0.5.2...v0.6.0

v0.5.2: Advanced Search, Upload Progress, PST/Mbox Import Fixes, and Bulk Deletion

Choose a tag to compare

@weishest weishest released this 27 Jul 12:35
a560b8c

This release adds a new advanced search experience and a substantial round of data-integrity work across ingestion and storage. Several of the ingestion fixes close paths where an import could skip or duplicate messages while reporting success, so upgrading is recommended for anyone running large or recurring imports.

Advanced search

Search now supports structured filtering alongside keyword matching. The search page has a new filter panel that lets an operator narrow results by:

image
  • Ingestion source — include or exclude specific sources. Selecting a merged ingestion covers its whole merge group. This control appears only for roles that can list sources.
  • Sender and recipient — include or exclude sender addresses, and include or exclude recipient addresses (matched across To, Cc, and Bcc).
  • Mailbox — restrict results to specific archived mailbox accounts, with type-ahead suggestions as an address is typed.
  • Date range — restrict to a sent-date window. Both bounds are inclusive and interpreted in UTC.
  • Attachments — restrict to emails with or without attachments.

Keyword matching can also be scoped to specific parts of an email — subject, body, attachment name, attachment content, sender, or recipients — so a search for invoice scoped to attachment names finds messages with a file named like invoice.pdf rather than every message that merely mentions the word. Results can be sorted by newest, oldest, or relevance. When at least one filter is active, keywords become optional, so the filters double as a way to browse the archive.

The full search state — keywords, matching strategy, and every filter — lives in the page URL, so a search can be bookmarked, shared, or reloaded and reproduced exactly. Pagination preserves all active filters.

Each search result and the email metadata section now also show the mailbox an email was archived from, and the metadata section links the ingestion source to its email list. The source relation in the detail response is trimmed to id and name so stored credentials are never included.

Everything available in the UI is also available through GET /v1/search using the same parameters. See the search guide and the Search API reference for details.

Reindex required. The attachments filter relies on a hasAttachments field in the search index, and improved sender display relies on a new fromName field. Emails archived before this release need a one-time reindex before the attachments filter counts them correctly or search results show a resolved sender name. See Search Indexing & Reindexing.

Upload progress and feedback

image

File uploads for PST, EML, and Mbox ingestion sources were previously fire-and-forget — a spinner with no progress, no way to cancel, and a failure reported only as a transient toast while the file input reset, so a slow or failed upload looked like a hang. All three file-based providers now share one upload field driven by XMLHttpRequest that shows a progress bar with percentage, a cancel button, a persistent success panel with the file name and storage path, and a persistent error panel with the failure reason.

Ingestion and imports

Several changes close paths where an import could report success while losing or duplicating messages:

  • Mbox imports no longer drop messages (#412). The mbox splitter's readable side was a byte stream, so Node re-concatenated the per-message buffers and the consumer received runs of messages glued into one, which were then archived as a single email. The splitter now runs in object mode so each message stays a discrete buffer, and it logs the message count so a source-versus-archive mismatch is visible.
  • Corrupted MIME and re-sync duplication in PST imports are fixed (#376, #417). PST message construction emitted invalid MIME — two top-level Content-Type headers, a headerless first body part, and raw binary injected into the header block — so parsers rendered HTML bodies as raw source, dropped recipients, and could not resolve inline cid: images. Messages are now rebuilt as valid RFC 5322 / 2046 with proper multipart nesting, CRLF line endings, base64-encoded bodies, RFC 2047 encoded headers, and Content-ID on inline attachments. Senders carrying an Exchange X.500 distinguished name are resolved to their SMTP address. The constructed PST mailbox identity is now stable across runs, which stops a re-sync from re-archiving the entire PST as duplicate rows; two paths that could run a second import concurrently with a live one were also closed by raising the ingestion worker's BullMQ lock duration and heartbeating sync sessions on wall-clock time.
  • Long email IDs, folder names, and attachment file names no longer drop emails (#405). Attachment file names from MIME headers were used raw in storage paths, so names over the 255-byte filesystem limit failed the write and dropped the whole email, and names containing slashes or .. could create unintended directories. Attachment file names are now sanitized and byte-clamped with a short hash suffix, email-id limits are measured in bytes, and folder path segments are clamped. Original file names and paths are still stored unmodified in the database.
  • Large imports no longer fill the disk (#400). Local PST files are read in place instead of copied into a temp directory, and leaked temp directories are swept by owner PID.
  • Unreadable files now fail the job instead of crashing the worker; source-stream errors in the file connectors are propagated so the job rejects cleanly.
  • Ingestion sources are sorted alphabetically by name (#407), rather than by creation order, which makes the source list and every source dropdown easier to navigate at scale.

Two deduplication lookups were also given supporting indexes to remove full-table scans on large re-syncs: msgid_header_source_idx on (message_id_header, ingestion_source_id) for the default Message-ID dedup path (#394), and storage_hash_source_idx on (storage_hash_sha256, ingestion_source_id) for the preserve-original (GoBD) byte-hash path. Before these, every ingested email sequential-scanned archived_emails, pinning CPU during re-syncs of large archives.

Storage

  • Non-ASCII attachment downloads are fixed (#406). Downloading an attachment or .eml whose file name contained non-ASCII characters previously threw ERR_INVALID_CHAR and returned HTTP 500, because the raw name was interpolated into the Content-Disposition header. Downloads now use Express res.attachment(), which encodes the file name per RFC 6266 / 5987. The download error path also moved from console.error to the project logger.
  • NFC/NFD file name mismatches are tolerated (#409). On storage layers that rewrite file-name bytes on write while staying byte-sensitive on read — notably Docker Desktop bind mounts on macOS and some network shares — a file written under an NFC name could land on disk as NFD, so a download by the stored path returned 404. Local storage lookups now try the exact path first, then the NFC and NFD forms. Standard Linux filesystems were never affected.

Display and readability

  • Resolved sender names (#413). Exchange mail often carries an X.500 legacy distinguished name in the From address while the display name parses correctly, and earlier versions showed the raw distinguished name in the dashboard and search. The list and detail views now prefer the parsed display name, the detail page shows Name <email>, and the thread sidebar fetches the name. The search index stores the name as a new searchable fromName field while keeping from as the address, so search and filtering by email still work; search results display fromName. The Top Senders widget resolves display names from the database, so it reads correctly without a reindex.
  • Bulk email deletion (#366). The archived emails list page now supports selecting and deleting emails in bulk.

Operations

  • Quieter routine logs (#401). The continuous-sync scheduler heartbeat and no-work dispatch moved to debug, and per-email and per-attachment deduplication logs were demoted to debug, so idle systems no longer flood centralized log dashboards. Lifecycle and startup logs stay at info; LOG_LEVEL=debug restores the verbose output.

Upgrade notes

  • Reindex for full search coverage. After upgrading, run a reindex so existing emails populate the new hasAttachments and fromName search fields. Until then, older emails are treated as attachment-less by the attachments filter and may show an address rather than a display name in results. The Top Senders widget does not require a reindex.
  • New environment variable. PDF_PARSE_TIMEOUT_MS controls the built-in (non-Tika) PDF parse timeout in the indexing worker. Default is 20000 ms.

Contributors

  • @weishest / wayneshn — advanced search, upload progress, ingestion and storage fixes, sender-name resolution, and logging changes.
  • @opniskanen — corrupted MIME and re-sync duplication fixes for PST imports (#417).
  • @waffen29 — bulk email deletion on the archived emails list page (#366).

Thanks to everyone who reported the issues that shaped this release.

Full Changelog: v0.5.1...v0.5.2

v0.5.1: Reindex, indexing admin panel, per-ingestion stats page, merge sources

Choose a tag to compare

@weishest weishest released this 10 Jul 09:04
25e321f

This release makes email indexing reliable and observable end-to-end, adds new statistics and search-index admin views, and ships fixes for Docker deployments and SMTP journaling sources.

Reliable indexing, reindexing & observability

Search relies on Meilisearch, and previously emails could silently fail to index. That's fixed, and you now have full visibility and repair tools:

  • Verified indexing — a batch is only marked indexed after Meilisearch confirms the write; failed batches are retried instead of being silently dropped. A per-email attempt counter prevents a single bad message from looping forever.
  • Manual reindex — reindex a single source (and its merge group) or the whole archive, in missing (fill gaps) or full (rebuild) mode. Idempotent — rebuilding never creates duplicate documents.
  • Per-source statistics page — emails, mailboxes, storage (email + attachment), threads, date range, index coverage, per-mailbox breakdown, merge-group children, and a recent-activity chart.
  • Admin → Index page (Super Admin) — a built-in view of the Meilisearch instance (host, version, health, DB size), the emails index (document count, primary key, field distribution), per-source document counts sourced directly from the search index, and the full task list with statuses and errors for troubleshooting.
image image

Flexible ingestion-source management

  • Unmerge a child source from its merge group to make it standalone again (complementing merged sources).
  • Managed journaling — smtp_journaling sources are managed exclusively via the Journaling page; direct mutations (update, delete, pause, unmerge, force-sync) are blocked with a clear message. (Enterprise feature)
  • Organization domain grouping — map primary domains to alias domains per organization for journaling. (Enterprise feature)

Other features

  • Preserve-original-file mode (GoBD) with temp-file streaming ingestion.
  • Connectors stream original emails to temp files instead of holding full buffers in memory, reducing memory usage during large .eml/.mbox/.pst imports.

What's Changed

Full Changelog: v0.5.0...v0.5.1

v0.5.0: More robust ingestion for large mailboxes, inline image display, storage optimization

Choose a tag to compare

@weishest weishest released this 20 Mar 13:13
e5e1195

What's Changed

Email Preview: Inline Attachment Rendering Fix

Fixed a long-standing issue where inline/embedded images in email previews were not rendering. Now, emails with inline images will display correctly.

Storage: Strip Non-Inline Attachments from EML Before Storage

When archiving an EML file, non-inline attachments are now stripped from the raw EML before it is written to storage. Previously, regular attachments were being stored both as separate attachment records and embedded within the EML body, resulting in redundant storage consumption. This change ensures attachments are stored only once.

Sync Session Management Migrated to PostgreSQL

Sync session state is now persisted in PostgreSQL instead of Redis. This makes sync state durable across restarts and removes a dependency on Redis for session tracking. The sync_sessions table is managed via Drizzle ORM migrations alongside the rest of the schema.

Duplicate Detection for Google Workspace and Microsoft 365

The Google Workspace and Microsoft 365 ingestion connectors now perform a duplicate check before storing each message. If a message with the same identifier already exists in the archive, it is skipped rather than re-ingested. Additionally, the connectors now avoid making unnecessary API calls when a previous ingestion for the same message has already failed, preventing redundant error cycles.

Duplicate Detection for IMAP Import

The IMAP ingestion connector received the same duplicate check as the cloud connectors. Message listing during IMAP sync was also optimized to reduce the number of IMAP commands issued per sync cycle.

Improved Error Handling for File-Based Ingestion

Upload error handling for file-based ingestion (EML, MBOX, PST) has been improved. Errors encountered during file processing are now surfaced with more descriptive messages rather than silently failing or producing generic errors.

OpenAPI Specification

The backend API now ships with a machine-generated OpenAPI specification. The spec is generated via a script (generate-openapi-spec.mjs) and covers all API routes. This enables API documentation tooling and client SDK generation for integrators building on top of OpenArchiver.

Enterprise features

  • Added a new enterprise-only integrity report feature with PDF generation support. Administrators can now generate a downloadable PDF report that audits the integrity of the archived email store, providing a verifiable record suitable for compliance purposes.
  • Retention policy and Retention label
  • Legal hold

Full Changelog: v0.4.2...v0.5.0

v0.4.2: Local file path support, security update, Bulgarian support

Choose a tag to compare

@weishest weishest released this 24 Feb 20:47
3434e8d

This release brings new features such as local file path support for large files, system security, and Bulgarian language support. A huge thank you to our community for their valuable contributions!

Ingestion Enhancements

  • Local File Path Ingestion: You can now ingest Mbox, EML, and PST files directly from the server's filesystem. This is ideal for processing large archives without needing to upload them through the browser. Special thanks to @mrbrdo for contributing to the backend code!
  • Google Workspace Optimization: We've optimized the synchronization process to skip downloading content for existing emails (using Message-ID checks) and fixed a race condition during initial imports to ensure no incoming mail is missed.
  • Better Error Handling: We've improved error messages for file-based imports to clearly distinguish between missing files and upload failures. Additionally, failed ingestion sources can now be forcibly removed even when global deletion protection is active, preventing cluttered configurations.
image

Configuration & Security

  • Secure Redis Support: Added support for the REDIS_USER environment variable, enabling compatibility with Redis configurations that require username/password authentication. Thanks to @zophiana for this security enhancement!
  • Meilisearch Reliability: We've added a default daily snapshot schedule for Meilisearch in docker-compose.yml to better protect your search index. We also released a comprehensive guide for performing "dumpless upgrades" of the search engine.

User Management

  • API Keys: Improved generation logic and proxy handling for API keys.

Internationalization

  • New Language: Added full support for Bulgarian (bg). Thank you @nimdassdev!
  • Updated Translations: Improvements to the Italian translation, thanks to @albanobattistella.

Contributors

Full Changelog: v0.4.1...v0.4.2

v0.4.1: Fix API key creation, change password, update profile

Choose a tag to compare

@weishest weishest released this 17 Jan 12:24
2df5c92

What's Changed

  • V0.4.1: API key generation fix, change password, account profile by @wayneshn in #273
    • Resolves an issue where generating a new API key would fail. The root cause was improper handling of POST request bodies in the frontend proxy server.
    • Allowing users to change their own password and account profile
image

Full Changelog: v0.4.0...v0.4.1

v0.4.0: File encryption, integrity report, ingestion enhancement

Choose a tag to compare

@weishest weishest released this 30 Oct 16:35
c2006df

This release focuses on enhancing security, file integrity, and the robustness of the core ingestion and indexing pipeline. Several key features were added to Open Archiver to meet compliance and security requirements.

Highlights

  • File Encryption at Rest: You can now enable AES-256 encryption for all archived data, including email files and attachments, ensuring your data is secure on disk.
  • Data Integrity Verification: A new integrity reporting feature allows you to verify that your archived data has not been altered or corrupted since it was ingested.
  • Asynchronous Indexing Pipeline: The email indexing process has been completely refactored into a dedicated background job, dramatically improving the speed and reliability of the ingestion process.
  • IMAP Connector Stability: The IMAP connector has been overhauled to provide more stable connections and better error handling, ensuring more reliable ingestion from IMAP sources.
image

New Features

  • File Encryption: All archived emails and attachments can now be encrypted at rest using AES-256. This can be enabled via a new environment variable, providing an essential layer of security. #187
  • Data Integrity Reporting: Open Archiver now calculates and stores a SHA256 hash for every archived email and attachment. A new API endpoint allows you to trigger a verification process that recalculates these hashes and compares them against the stored values, confirming the integrity of your archive. This feature is also available via the UI. #187
  • Deletion Protection: A new instance-wide setting (ENABLE_DELETION environment variable) can be configured to disable the deletion of emails and ingestion sources. #187
  • Background Job Monitoring UI: A web-based dashboard has been added for monitoring and managing background jobs (e.g., ingestion, indexing). This gives administrators better visibility into the system's asynchronous operations and helps with troubleshooting. 42b0f6e
  • Option to Archive Junk/Trash: The ALL_INCLUSIVE_ARCHIVE environment variable has been added to allow the archiver to include emails from "Junk" and "Trash" folders, which are skipped by default. #187

Improvements

  • IMAP Connector Stability: The IMAP connector has been significantly refactored to improve connection management and error handling. The connector is now more resilient to network issues and will automatically re-establish connections when they become unstable. 7ceb85c
  • Scoped Attachment Deduplication: The attachment deduplication logic is now scoped on a per-ingestion-source basis. This ensures that attachments with the same content hash but from different sources are handled correctly, preventing incorrect linking in multi-source environments.
  • Responsive UI: The main navigation menu, search results pagination, and the new jobs dashboard have been updated to be fully responsive, improving the user experience on mobile and tablet devices. 6e1ebbb
  • CORS Configuration: CORS handling has been simplified with the introduction of the APP_URL environment variable, resolving CORS issues during upload. #52 #120

Bug Fixes

  • Fixed an issue where the sync-cycle state was not correctly merged, which could cause errors when no successful jobs were present in a cycle.

Full Changelog: v0.3.4...v0.4.0

v0.3.4: OCR support, batch indexing in Meilisearch

Choose a tag to compare

@weishest weishest released this 26 Sep 15:04
b71dd55

What's Changed

  • Feat: Tika Integration and Batch Indexing by @wayneshn and @axeldunkel in #132

    • Enhanced Text Extraction: We've integrated Apache Tika to provide text and metadata extraction from a wide range of file types, including PDFs, Office documents, and image-based files. This improves the search capabilities by making the content of attachments fully searchable.
    • Improved Indexing Performance: The indexing process now supports batching, which will significantly speeds up the ingestion and indexing of large volumes of emails.
    • Configurable Batch Size: The batch size can be configured using the MEILI_INDEXING_BATCH environment variable.
  • docs: Add OCR docs by @wayneshn in #144

Full Changelog: v0.3.3...v0.3.4