Administration -- Labels
This page (admin/tags.php) manages Capmail labels. A label is a colored tag you put on an email to classify it (different from Dolibarr categories and IMAP folders).
Labels are specific to Capmail and do not synchronize with the IMAP server. They complement the custom flags (USER_FLAG1 to 4) which, for their part, are synchronized via IMAP keywords.
Shared and personal labels
A label has one of these three visibilities:
- Personal: created by a user for their own use only. No other user sees it.
- Group: visible to the members of a Dolibarr user group. A user can create one for a group they belong to, an administrator for any group.
- Global: visible to every user with access to the module. Only an administrator can create one.
Group and global labels are called "shared". Only an administrator can modify or delete a shared label, including one a member created for their group.
Any user authenticated on the module can access this page to manage their labels.
Without going through the module setup: the My labels tab of the personal preferences (gear icon of Lead Mode, or the "Manage my tags" link at the bottom of the label sidebar) offers the same features, with the same visibility choice. An administrator also creates, modifies and deletes shared labels there; other users see them read-only.
The Personal system label
Module activation automatically creates a Personal label, one per entity, visible to everyone. It marks the emails of a personal mailbox that belong to the private life of its owner: they, and only they, are what the personal mailbox purge deletes, and what the scheduled task deletes after the employee leaves (see Mark an email as personal).
In the label list:
- it cannot be deleted: a padlock replaces the trash can;
- its name and visibility are fixed; only its color and shortcut key can be changed. Its name is displayed in each user's language.
Only the owner of a personal mailbox can apply it, to an email of their own mailbox. It is refused on a shared mailbox, on a colleague's mailbox, and by any automation (automatic filters, folder -> label mappings, default labels of an extraction template).
Creating a label
| Field | Description |
|---|---|
| Label | Text displayed on the label icon in the lists (e.g. "Newsletter", "Invoice", "Urgent"). |
| Color | Background color. A palette of 20 predefined colors is offered to stay visually consistent. |
| Shortcut | Optional digit from 1 to 9 that applies or removes the label from the keyboard. |
| Visibility | Personal, Group (with the choice of the group) or Global (administrators only). |
Usage
Once created, a label can be applied to an email:
- From the preview, via the label menu.
- By drag and drop onto the label icon in the sidebar.
- Via a mass action (multiple selection + "Label" button).
Labels appear in the email list as colored badges on the email row, and in the sidebar as quick filters (click = filter by label).
Folder -> label mappings
To automatically label emails arriving in a given IMAP folder, use the dedicated section on a mailbox card (see Mailboxes).
Tips
- Keep the number of shared labels to 5-10 to stay readable.
- Use distinct colors: red for urgent, green for processed, blue for info, etc.
- Personal labels let each user have their own classification system without polluting others'.