Cette traduction est en retard : la version française a été modifiée depuis. Voir la version française

Administration -- Behavior

This tab (admin/setup.php) groups the global settings that apply to all users and all mailboxes.

"General behavior" section

Show the icon in the top menu

Constant: CAPMAIL_MAIN_MENU_TOP

If enabled, a Capmail icon appears in Dolibarr's top menu bar in addition to the sidebar menu. Handy to quickly access Lead Mode.

Auto-copy address for replies

Constant: CAPMAIL_AUTOCOPY_TO

Email address added as CC on all replies sent from Capmail. Useful to archive exchanges on a third-party account (external CRM, legal archiving, manager).

Leave empty to not copy anything automatically.

Archiving also moves on the IMAP server

Constant: CAPMAIL_ARCHIVE_MOVES_IMAP

If enabled, the "Archive" button moves the email to the archive folder configured on the mailbox (IMAP server side). Otherwise, archiving stays local to Dolibarr (the email remains in INBOX on the server side).

Recommended: enabled, to keep Dolibarr and the IMAP server synchronized.

Excluded senders

Constant: CAPMAIL_EXCLUDED_SENDERS

List of addresses (comma-separated) whose emails are ignored at collection. Supports domain wildcards, e.g. *@newsletter.example.com.

Use it to filter out noisy automatic notifications (no-reply, read receipts, internal services).

Own domains

Constant: CAPMAIL_OWN_MAIL_DOMAINS

List of your own domains (comma-separated), e.g. my-company.com,my-company.fr. Used by the BCC detection heuristic: if an incoming email has none of your domains in To: or Cc:, the module knows you were in Bcc: (blind copy).

Delay before automatic mark-as-read

Constant: CAPMAIL_AUTO_MARK_READ_DELAY

Duration in milliseconds before an email opened in the preview is automatically marked as read. Default 2000 (2 s). Set -1 to disable automatic marking (the user will have to click the read button manually).

Delay before deleting the personal mails of a disabled user (days)

Constant: CAPMAIL_PERSONAL_PURGE_DELAY_DAYS

Number of days between the disabling (or deletion) of a user in Dolibarr and the deletion of the emails of their personal mailboxes that carry the Personal label. Default 30. With 0, the deletion happens on the next run of the scheduled task Capmail - deletion of the personal mails of departed users (daily, in Home > Setup > Scheduled tasks). A value that is not a whole number of days is ignored: 30 days apply.

Only the emails tagged Personal are deleted; the other emails of their mailboxes, company documents, are kept. Enabling the user again before the end of the delay cancels the deletion, but their personal mailboxes stay disabled until you enable them again. See Mark an email as personal.

"Newsletter editor" section

Dolibarr newsletter card editor

Constant: CAPMAIL_EDITOR_MODE

Choice between TinyMCE (recommended) and CKEditor, the editor shipped with Dolibarr, for the Dolibarr newsletter (mailing) card only. The Capmail forms -- reply, forward and new message, in Lead Mode as on an email card -- always use TinyMCE, shipped with the module.

"Outgoing mail" section

Default mailbox for the SMTP copy

Constant: CAPMAIL_DEFAULT_OUTGOING_MAILBOX

When an email is sent from Dolibarr (via the quote/invoice/order sending forms or via Capmail) and no mailbox is explicitly selected, this mailbox is used to copy the email into its IMAP "Sent" folder.

If empty, no copy is made (the email is sent but not archived on the IMAP side).

Message numbering

At the bottom of the page, configuration of the numbering module for the internal references of PostInMessage. The standard module mod_postinmessage_standard generates sequential references like PI{YY}{MM}-XXXX.