---
title: "What's new in version 2.0"
weight: 399
description: "What is new in each version 2.0 of Capmail, from the latest to the oldest: job applications, ScanPdf, Personal tag, automatic filters, Lead Mode, several mailboxes."
source_hash: "864257a2"
---

# What's new in version 2.0

This page gathers what is new in each version 2.0 of Capmail, from the latest to the oldest. Each version has its own section, which reads on its own. If your update skips several versions, read every section between your version and the new one.

- [Version 2.0.8](#version-2-0-8) -- job applications, ScanPdf, attachment filing, Personal tag
- [Version 2.0.6](#version-2-0-6) -- automatic filters, linking to Dolibarr objects
- [Version 2.0.4](#version-2-0-4) -- security, IMAP folders at every hosting provider
- [Version 2.0.0](#version-2-0-0) -- overhaul: Lead Mode, several mailboxes, labels

## Version 2.0.8

Released on November 20, 2026. This version opens Capmail to recruitment and to ScanPdf, files attachments where they are useful, and gives every employee a tag to keep private mail apart from work mail. It also closes two security flaws and fixes a crash at activation.

> **Recommended update for everyone**, especially on Dolibarr 19 and later: activating Capmail could bring the whole instance down when the Ticket, Stripe or BlockedLog module was enabled.

### Receive job applications by mail

A job application received by mail becomes an application of the Dolibarr **Recruitment** module, resume included. No thirdparty is created: a candidate is not a customer.

- the form is filled from the mail: last name, first name, address, phone, and the complementary attributes you defined for applications;
- the position is chosen for you when the mail was sent to the address of its recruiter. A position that does not exist yet can be created from the form, and so can a missing HRM skill;
- the candidate's replies, and yours, then join the application on their own;
- a mail filed as an application shows a banner and a badge, and leaves the list of mails to qualify;
- an automatic filter can create the applications for you, picking the position from the recruiter address;
- the demo contains open positions, resumes and an application already filed.

How to: [Create a job application from a mail](/capmail/action-creer-candidature).

### File attachments into the customer's record

Files received from a customer (company registration, signed order form, certificate) are copied in one click into the **Documents** tab of their thirdparty or contact, from the Lead Mode as well as from the mail card. No existing file is overwritten, and an automatic filter can do the filing for you.

Files copied into a thirdparty, a contact, a project or a ticket are also declared in the Dolibarr **DMS**, where its search finds them.

How to: [File attachments into the documents of a thirdparty or a contact](/capmail/action-classer-pieces-jointes).

### Send a received invoice to ScanPdf

With the **ScanPdf** module, the PDF invoice or image received as an attachment goes to ScanPdf in one click, from the Lead Mode or the mail card. When ScanPdf creates the supplier invoice or the order, the mail is linked to it automatically.

A mail can now also be linked by hand to a **supplier invoice**, like a proposal, an order, an invoice or a ticket.

How to: [Send an invoice received by mail to ScanPdf](/capmail/action-envoyer-scanpdf).

### The Personal tag and an employee's departure

In their personal mailbox, every user can put the **Personal** tag on the mails that belong to their private life. That tag, and only that tag, decides what gets deleted:

- purging a personal mailbox now deletes only the mails tagged **Personal**; work mail stays with the company;
- after an employee leaves, their **Personal** mails are deleted automatically once a delay set in the **Behavior** tab has passed (30 days by default).

Related fix: disabling a user now stops their personal mailboxes and unassigns the mails that were assigned to them. Until now, their mailboxes kept being fetched.

How to: [Mark a mail as personal](/capmail/action-marquer-personnel).

### Shared labels from your preferences

The **My labels** tab of your preferences now lets you create, besides your personal labels, a label shared with a group you belong to. An administrator also creates global labels there, and edits or deletes any shared label, without going through the module setup.

### Replies and images

- sent replies stay readable in the "Sent" folder of your mail client, in HTML and with their real message identifier;
- the images of a mail quoted in a reply are sent embedded in the message instead of as broken links;
- the inline images of received mails are shown in the preview, on the mail card and in the API.

### Tickets

- the **Ticket** tab appears as soon as a mail is linked to a thirdparty, without reopening the mail;
- the ticket tags (Dolibarr Tags/categories menu) are chosen in the creation form, when the Categories module is enabled;
- when a ticket cannot be created, the message gives the reason instead of an empty error.

How to: [Create a ticket from an email](/capmail/action-creer-ticket).

### Security

- an attachment name can no longer inject headers into a sent mail;
- a mail crafted to stall the fetch no longer does: the mail parsing library is updated, and the structure of a message is bounded before it is parsed.

### Fixes

- activating Capmail no longer crashes Dolibarr 19 and later when the Ticket, Stripe or BlockedLog module is enabled;
- on PHP 7.4, a disabled certificate check, filter or mailbox stays disabled;
- demo mails can be read and filed without waiting on a mail server that does not exist;
- an archived or spam mail shows its status (Archived, Spam) instead of an empty badge;
- filtering the input template list by status no longer raises a PHP warning;
- the card of a mail without private note no longer shows a PHP deprecation message.

### PHP 7.4 servers

A PHP 7.4 edition of Capmail is available on request, for servers that cannot move to PHP 8 yet.

### Updating

1. Replace the module files with those of 2.0.8.
2. Disable then enable the module again: enabling it creates the **Personal** system tag and the scheduled job that deletes the personal mails of departed users.
3. For job applications, enable the Dolibarr **Recruitment** module. For ScanPdf, you need a ScanPdf version that accepts documents coming from Capmail: without it, the ScanPdf tab does not appear.

## Version 2.0.6

This version brings two major features -- automatic sorting of incoming mail and attaching emails to Dolibarr objects -- along with a long series of security hardening and reliability fixes concerning search, conversations and IMAP/SMTP exchanges.

### Automatically sort incoming mail

A **filter** examines each incoming message and, if it matches the conditions you set (sender, subject, body, headers, attachments), runs the actions of your choice: mark as read, set as favorite, label, snooze, archive, move, mark as spam or delete. A filter can also attach the email to a third party or a project, create a ticket, a third party or a project from the message, reply from a template, forward or notify a Dolibarr user.

Each filter can be tested **dry** before being armed: the trial lists the emails it would have caught, and an observation mode lets it run without changing anything. Filters can be replayed on already received mail, applied to a selection from the list, and duplicated to create variants.

Each user manages the filters of their own mailboxes from the "My filters" tab; the administration centralizes shared filters, per mailbox or for all.

All the details: [Automatically filter incoming mail](/capmail/action-filtrer-courrier).

### Attach an email to a Dolibarr object

An email can now be attached, attachments included, to a **project, a quote, an order, an invoice or a ticket**. And when a customer replies to an email sent by Dolibarr (quote, invoice...), the reply attaches itself to the object it concerns: the conversation stays in the right place without any manipulation.

How to: [Attach an email to an object](/capmail/action-rattacher-objet).

### Security

The hardening wave continues after 2.0.4:

- search can no longer be widened or broken by an apostrophe or a wildcard entered in the field;
- the API routes for replies, templates and labels apply the per-mailbox read limit;
- sending requires a send right whatever the chosen sender address;
- mass deletion has its own right and only touches readable mailboxes;
- the email card, the third party tab and the collection action require the module read right;
- third party and contact identifiers are checked before an email is filed under them;
- an open redirect, a referer bypass and header injections are closed;
- an email body copied into a ticket by a filter is sanitized.

### Notable fixes

- conversations are rebuilt along the whole References chain, not just the direct parent message;
- quick search works again and filters no longer stick to the session;
- label colors are preserved and injected addresses no longer go through markup;
- unnamed or duplicate attachments get a usable name, and lists are sorted;
- each imported email is committed individually: an incident mid-batch no longer prevents already processed emails from being saved;
- an oversized email is ignored with a message in the logs instead of crashing the collection;
- a connection failure no longer removes folder links nor marks emails as unread again;
- the template selector works again on sending, the reply editor really offers the robot sender with its translated palette;
- a sent email body is stored only once: apostrophes are no longer doubled on display.

### For administrators

- the extraction templates tab is renamed so it is no longer confused with filters;
- the mass action selector is back on a third party's mail tab;
- a template's test tab tests the fields actually analyzed;
- the storage migration page is in French.

### Update

1. Replace the module files with those of 2.0.6.
2. Disable then re-enable the module: the filter table and the new rights are created on reactivation.
3. Grant the new deletion right to the users who need it (it has been separate from the read right since this version).

The update is free for license holders. This version follows 2.0.4; if you come from an earlier version, also read [what's new in 2.0.4](#version-2-0-4).

## Version 2.0.4

This version is above all a **security and reliability** release. It adds no new interface: it fixes defects that prevented the module from working correctly with some hosting providers, and hardens all accesses.

It also includes the changes of 2.0.3, which was not published.

> **Recommended update for everyone**, especially if you use Capmail in multi-company mode or if your users do not all have access to the same mailboxes.

### Security

A full access review was conducted. The reinforced points:

- **Multi-company isolation**: messages, mailboxes, sender profiles and labels are now filtered by entity at module level, instead of relying on indirect filtering via the mailbox.
- **Rights matrix applied everywhere**: per-user and per-mailbox rights are now also checked on mass actions, on the Capmail tab of the third party card, on the identifiers transmitted in forms, and on attachment downloads.
- **Protection against remotely triggered actions**: actions that modify data now require a security token.
- **Sanitization of email HTML** before display in the reply editor, when printing and in template selectors.
- **Templates and sender profiles private** really limited to their owner.
- Hardening of attachment processing, EML file headers and subjects.

If you grant differentiated rights to your users on several mailboxes, this update matters.

### Incoming emails: accents are no longer lost

Subjects containing accents were stripped of their accented characters: *"Demande de réservation à Nîmes"* was stored as *"Demande de rservation  Nmes"*.

The subject was decoded twice, and the second pass removed all non-ASCII characters. This is fixed. Messages **already** received keep their truncated subject: only new messages are affected.

Sender detection has also been improved, notably when the sender's address belongs to your company's mail domain.

### IMAP folders: the cases that did not work

Three situations silently blocked the module. The symptom was always the same: Capmail considered a folder non-existent, the copy to "Sent" was abandoned without an error message, and archiving tried to recreate folders already present.

- **Servers using a dot as separator** (OVH MX Plan and many Dovecot servers): a path like `INBOX.Sent` was not recognized.
- **Folders whose name contains an accent**: `[Gmail]/Messages envoyés`, but also any folder you might have named `Clients spéciaux` or `Archivé`. Folder names travel in a particular encoding and the module did not decode it.
- **Ambiguous folder names** (two folders with the same name under different parents): the module picked one at random. It now reports the ambiguity and invites you to enter the full path.

### Two new tools in the administration

#### Detect folders

On a mailbox card, the **Detect folders** button queries the server and compares your configuration with reality. It reports missing folders, ambiguous names, and **proposes the right values** from the standard attributes published by the server. The **Apply detected folders** button saves them.

This is now the recommended method: conventions vary a lot from one hosting provider to another (`INBOX.Sent` at some, `Sent` at others, `[Gmail]/Messages envoyés` at Gmail).

#### Repair duplicated-prefix folders

In the Advanced tab. Some servers create folders with a doubled prefix, like `INBOX.INBOX.Sent` instead of `INBOX.Sent`. Invisible in most webmails, they accumulate mail that nobody reads.

The tool moves their messages to the right path, deletes the emptied folder and fixes the internal references. A simulation button shows what would be done. **The folder is only deleted once its messages have actually been moved**: in case of a problem, it is kept and the error is reported.

### Sending: STARTTLS and certificates

- **STARTTLS is now really offered** for a mailbox's SMTP. The option was missing from the form, which made unusable any server offering only port 587.
- **The SMTP connection test really authenticates.** It used to stop before authentication: a wrong password was announced as a success, and the failure only appeared on the first send.
- **TLS certificate validation becomes a per-mailbox setting.** It stays enabled by default. Disabling it allows using a self-signed certificate server, common in self-hosting, which was until now out of reach.

### Compatibility by hosting provider

The real limits are now documented, after verification on each service:

| Provider | Status |
|----------|--------|
| OVH, Free, Dovecot servers | work |
| **Gmail** | works, with an **app password** required. See [Connect a Gmail mailbox](/capmail/connecter-gmail) |
| **Outlook.com and Microsoft 365** | **not supported**. Microsoft has removed password authentication and only accepts OAuth2, which the module does not manage yet |
| **Proton Mail** | **not supported**. Proton exposes no public IMAP server |

### Update

Two database changes are applied automatically **when the module is reactivated**: disable then re-enable Capmail in the module list after dropping the files.

No action is needed on your existing mailboxes. If you noticed missing folders or a copy to "Sent" that was not happening, run **Detect folders** on each mailbox: the problem probably came from one of the cases fixed above.

### For developers

- The module exposes hooks and triggers for third-party modules.
- An experimental integration with dolipocket (React feature loaded on the fly) is started, with demo data.
- A campaign of automated tests against **real IMAP/SMTP servers** has been added (74 tests over 7 phases), in addition to new tests for entity isolation, authorization and hardening.

## Version 2.0.0

Version 2.0 is a major overhaul of the Capmail module. It introduces a new email processing interface, support for several mailboxes, a label system replacing IMAP folder navigation, and many productivity improvements.

This page summarizes the user-visible changes. For the configuration details of each feature, see the dedicated pages referenced at the end of each section.

### New default "Lead Mode" interface

Lead Mode replaces the classic list view as the main interface. It is a resizable three-column view:

- **Left column**: email list with infinite scroll, badges and visual indicators (unread, star, labels, conversation thread).
- **Center column**: preview of the selected email, quick actions, automatically extracted data.
- **Right column**: processing actions (create/link a third party, reply, calendar, etc.).

The classic list view remains available via a dedicated button for advanced searches.

See: [Lead Mode](/capmail/lead-mode).

#### Keyboard shortcuts and undo

The Lead Mode interface supports keyboard shortcuts (j/k to navigate, a to archive, s for spam, d to delete, r to reply, t to assign a third party, etc.) with toast confirmation and the ability to undo via Ctrl+Z.

See: [Usage -- Keyboard shortcuts](/capmail/utilisation#raccourcis-clavier).

### Multiple mailbox management

Before 2.0, the module only managed a single global IMAP connection. Now, each installation can declare **as many mailboxes as needed**, each with its own IMAP and SMTP settings. Each collected email is attached to its mailbox of origin.

Typical use cases: separation of `contact@`, `support@`, `accounting@`; attaching shared team mailboxes; sharing the same Capmail between several brands.

See: [Administration -- Mailboxes](/capmail/admin-mailboxes).

### Per-mailbox rights matrix

A **user x mailbox** grid allows fine definition of who can **read** and who can **send** from each mailbox. Administrators have all rights by default. Saving is instant on click.

See: [Permissions](/capmail/permissions).

### Personal mailbox

Each authorized user can configure their own **private** IMAP mailbox directly from the leads interface, without administrator intervention on shared mailboxes. Received emails remain visible only to the owner, until the user chooses to share a thread with the team by linking it to a third party.

See: [Configuration -- Personal mailbox](/capmail/configuration#boîte-mail-personnelle).

### Per-mailbox SMTP configuration

Each mailbox can have its own SMTP server (otherwise, fallback to the global Dolibarr SMTP). A **Sender address (From)** field allows using a public address different from the technical login (for example: login `account42@domain.com`, sending from `contact@domain.com`).

See: [Administration -- Mailboxes -- SMTP section](/capmail/admin-mailboxes#section-smtp-envoi-des-emails-sortants).

#### Mailbox selector in Dolibarr forms

When a user sends an email from a standard Dolibarr form (quote, invoice, order, etc.), a **Send from mailbox** selector appears. It lists only the mailboxes for which the user has the send right and which have an SMTP configuration. The email is sent via the SMTP server of the chosen mailbox and automatically copied into its "Sent" folder.

See: [Usage -- Sending from Dolibarr forms](/capmail/utilisation#envoi-depuis-les-formulaires-dolibarr).

### Capmail labels (replacing IMAP folder navigation)

Version 2.0 introduces a **label** system specific to Capmail that replaces the IMAP folder navigation of 1.x. A label is a colored tag put on an email to classify it, independent of the IMAP tree.

Advantages over IMAP folders:

- An email can carry **several labels** at the same time.
- Labels are **specific to Capmail**: no risk of breaking the IMAP organization on the server side.
- **Shared** labels (managed by administrators, visible to all) or **personal** labels (private to each user).
- Quick filtering from the sidebar by simply clicking a label.
- Applied by drag and drop, label menu, or mass action.
- **Automatic IMAP folder -> label mapping**: allows automatically labeling emails arriving in a given IMAP folder (e.g. everything falling into `INBOX/Newsletter` gets the "Newsletter" label).

See: [Administration -- Labels](/capmail/admin-tags).

### Bidirectional IMAP flag synchronization

State changes in Capmail are now **reflected on the IMAP server**, and vice versa. Synchronization covers:

- `\Seen` <-> Dolibarr read/unread status.
- `\Flagged` <-> Capmail star (yellow fa-star button).
- Keywords `$Label1` to `$Label4` <-> Capmail custom flags 1 to 4.

This makes Capmail **compatible with Thunderbird** (keys 1 to 4 of the numeric keypad to set labels), Roundcube and most modern webmails: an email marked important in Thunderbird is marked in Capmail, and vice versa.

The star (`\Flagged`) is now **independent** of flag 1 -- these are two distinct concepts.

Flags 5 to 8 remain purely local to Capmail (no standard IMAP equivalent).

See: [Administration -- Advanced -- Custom flags](/capmail/admin-advanced#section-marqueurs-personnalisés).

### Threaded view (email threading)

Emails belonging to the same conversation thread are automatically detected (via the RFC 5322 `In-Reply-To` and `References` headers):

- A dedicated icon in the list indicates that an email is part of a thread.
- A collapsible panel in the preview lists all messages of the thread in chronological order. Clicking a message in the thread switches the preview.
- **Automatic propagation of the third party link**: linking an email to a third party (creation, association or duplicate) propagates the link **to all other messages of the same thread**. No more manually reprocessing each reply of a conversation.

See: [Usage -- Email card](/capmail/utilisation#fiche-email).

### Snooze

An email can be **snoozed** until a chosen date. It disappears from the lists during that period and reappears automatically when the date is reached. Shortcuts offered: tomorrow 8am, in 2 days, next Monday, 1 week, 1 month, custom date.

Snooze is also available as a mass action, and a toolbar button temporarily shows snoozed emails.

See: [Usage -- Quick actions](/capmail/utilisation#actions-rapides).

### Detection and extraction templates

Capmail can now automatically recognize emails coming from web forms (WordPress Contact Form 7, Wix, Typeform, custom forms...) and **extract structured data** from them (name, email, phone, zip code, city, SIREN, message, etc.).

For each template:

- **Detection rules** (subject contains, sender contains, regex on the body...) to determine when the template applies.
- **Extraction rules** (regex on the text or HTML body, on the subject, etc.) to fill the target fields.
- **Default labels** (third party, contact, project) automatically applied to objects created from a matching email.
- Integrated **Test tab** to validate the template with a sample email before production.

Extracted data automatically pre-fills the third party/contact/project creation forms of Lead Mode, visually signaled by a blue border and a magic wand icon.

See: [Administration -- Extraction templates](/capmail/admin-templates) and [Templates](/capmail/templates).

### Duplicate detection and quick creation of Dolibarr objects

Before creating a new third party, Lead Mode automatically searches for existing matches according to several criteria:

- Sender email address.
- Phone number (normalized, digits only).
- SIREN number.
- Company name (fuzzy matching via similar_text + Levenshtein, 70% threshold).
- Subject of emails already linked to a third party (with stripping of Re:/Fwd:/Tr: prefixes).

Found matches are displayed in a "Potential duplicates" box with a button to directly link the email to the existing third party.

If no duplicate is found, **quick creation** forms allow creating in a few clicks:

- **Third party** (with Prospect/Customer status, assigned sales rep, payment terms and mode, bank account, all pre-configurable).
- **Contact** attached to the third party.
- **Project** auto-created or manual, with **attachment linking** of the email's attachments to the project (with renaming).

See: [Lead Mode](/capmail/lead-mode#colonne-droite-actions).

### Capmail tab on the third party card and upcoming actions tab

Each Dolibarr third party card has a new **Capmail** tab displaying the full history of emails exchanged (incoming and outgoing).

From the right panel of Lead Mode, when an email is linked to a third party, an **Actions** tab lists the upcoming Dolibarr calendar events related to that third party, allowing you to view, edit or add an event (appointment, call, task) without leaving the interface.

See: [Usage -- Actions tab](/capmail/utilisation#onglet-actions) and [Capmail tab on the third party card](/capmail/utilisation#onglet-capmail-sur-la-fiche-tiers).

### Secure HTML content display

The body of HTML emails is now displayed in a **sandboxed iframe** with a strict CSP policy that blocks scripts, objects and external bases. `referrerpolicy="no-referrer"` prevents data leaks to tracking servers possibly embedded in images. An HTML / plain text toggle is available.

This multi-layer protection eliminates XSS risks when viewing malicious emails.

See: [Usage -- Email content](/capmail/utilisation#contenu-de-l-email).

### Admin setup overhaul

The configuration page is entirely reorganized into **4 main thematic tabs** + **4 secondary tabs**:

Main tabs:

1. **Mailboxes** -- mandatory entry point. As long as no mailbox is created, the interface displays an onboarding inviting the administrator to configure their first mailbox.
2. **Behavior** -- general settings (menu, IMAP archiving, exclusions, HTML editor, default sending mailbox).
3. **Leads and third parties** -- default values for creating third parties/projects, automatic reply, status colors.
4. **Advanced** -- custom flags, extra fields, column order, one-shot maintenance tools.

Secondary tabs:

5. **Extraction templates** -- automatic form detection and extraction.
6. **Labels** -- management of shared and personal labels.
7. **Mailbox access rights** -- user x mailbox matrix.
8. **About** -- module information.

The old global IMAP configuration (`CAPMAIL_SERVER_HOST/PORT/LOGIN/PASS/...`) has been removed: all IMAP configuration is now carried by the `Mailbox` cards.

See: [Configuration](/capmail/configuration).

### Newsletter editor and TinyMCE editor

A dedicated editor for composing **newsletters** is integrated into the module. In addition, the HTML editor used to write replies can be switched between **TinyMCE** (modern, recommended) and **CKEditor** (classic Dolibarr) via an option of the Behavior tab.

See: [Configuration -- Mail editor](/capmail/admin-behavior#section-éditeur).

### Browser notifications

Capmail can display **native browser notifications** when new emails arrive. Activation is done from the list toolbar, after browser authorization.

See: [Usage -- Notifications](/capmail/utilisation#notifications).

### Maintenance tools

The **Advanced** tab gathers a series of one-shot maintenance actions, each with a dry-run mode when relevant:

- Recalculate dates from EML files.
- Fix stuck PROV references.
- Purge orphan emails (present in database but no longer on the IMAP side).
- Re-link third parties to unlinked emails.
- Resync all folders from a given date.
- Purge strict duplicates (same Message-ID + same mailbox + same direction).
- Clean obsolete IMAP folders.
- Clean orphan folder links.
- Re-archive emails archived locally but not on the server side.

See: [Administration -- Advanced -- Maintenance tools](/capmail/admin-advanced#outils-de-maintenance).

### Dolibarr 18 to 23 compatibility

2.0 has been validated on all Dolibarr versions **18, 19, 20, 21, 22 and 23**. Specific adaptations (TRIGGER_PREFIX, fetchAll with USF filter from Dol 20, CommonHookActions fallback for Dol 18) are handled automatically.

### Migration from 1.x

When updating from a 1.x version:

1. **Disable then re-enable** the module to apply the SQL migrations (adding the `llx_capmail_mailbox`, `llx_capmail_mailbox_rights`, `llx_capmail_email_templates_input`, `llx_capmail_tag`, `llx_capmail_tag_message`, `llx_capmail_imap_folder`, `llx_capmail_imap_folder_message` tables, converting charsets to utf8mb4, etc.).
2. **Create your first mailbox** in the **Mailboxes** tab, reusing the parameters of the old global IMAP configuration (server, port, login, password, folders).
3. **Assign access rights** in the matrix (**Mailbox access rights** tab).
4. **Check the scheduled task**: it keeps running but now collects from all active mailboxes.

Emails already in the database are kept. Their attachment to the new mailbox happens automatically on the first fetch (matching via the IMAP login) or can be replayed via the **Re-link third parties** tool if needed.

The old global IMAP configuration is **not migrated automatically** to avoid overwriting data on each reactivation: the migration is done manually as described above.
