MailDesk docs
Advanced technical reference

Advanced: IMAP server profiles (A-D)

3 min read Odoo 18.0

This is an advanced reference for administrators. Most setups do not need it. The everyday page is How quickly email synchronizes.

IMAP has no reliable way to tell MailDesk about new mail. For IMAP accounts, MailDesk Pro therefore checks what each server can do, picks a sync method that fits, and prepares message bodies in advance. This page explains the four profiles.

Who this is for: administrators who want to know why an IMAP account syncs the way it does.

You need: MailDesk Pro and a connected IMAP/SMTP mailbox. The Probe IMAP capabilities button needs the Mailbox administrator group.

What to know first

  • There is nothing to configure. You do not choose a profile or a poll interval.
  • IMAP mail appears after the next scheduled sync, about every 3 minutes by default. See How quickly email synchronizes.
  • Gmail and Microsoft 365 accounts are not profiled. They use push or their own sync.

The four profiles

Profile Server capabilities What MailDesk does
A: Modern The server reports IDLE, CONDSTORE, QRESYNC and UIDPLUS Checks each folder's status first and skips folders that have not changed.
B: IDLE only The server reports IDLE but not CONDSTORE Also checks folder status and skips folders that have not changed.
C: Basic IMAP Everything else, for example no IDLE, or CONDSTORE without QRESYNC Uses the standard sync of MailDesk Basic.
D: Broken / unreliable server A value that exists on the account record Uses the same standard sync as profile C.

A new account shows Unknown until the first probe has run. Unknown behaves like C.

Profile D is not set by the probe

In the version we checked, the probe only ever sets A, B or C. Profile D exists as a value on the account, and it is treated like C by the sync. We found no automatic rule that sets it.

Profiles A and B skip a folder only when its status (next UID and highest mod-sequence) has not changed since the last sync. Folders that the scan has already marked as changed are always synced. MailDesk puts the folders you use most (such as Inbox, Sent, Drafts and the open folder) first.

On profiles C and D, and when the profile is Unknown, MailDesk uses the standard sync. Your mail is complete either way. The profile only changes how much work each run does.

How the profile is detected

  1. A probe opens an IMAP session and reads the server's CAPABILITY list.
  2. It compares the list with the rules above.
  3. It saves the profile, the capability list and the time of the check on the account.

If the probe cannot connect, the account keeps its previous profile.

flowchart TD
    A[Probe runs] --> B[Read CAPABILITY list]
    B --> C{IDLE, CONDSTORE, QRESYNC and UIDPLUS?}
    C -- yes --> PA[Profile A]
    C -- no --> D{IDLE without CONDSTORE?}
    D -- yes --> PB[Profile B]
    D -- no --> PC[Profile C]
    PA --> S[Skip unchanged folders]
    PB --> S
    PC --> L[Standard sync]

When the probe runs

  • A scheduled action, MailDesk: Probe IMAP capabilities (weekly), runs once a day. It probes only IMAP accounts whose last check is older than 7 days or missing, up to 50 accounts per run.
  • An administrator can run the probe at once: open the mailbox account and click Probe IMAP capabilities. Use it after a server change. The button is hidden for Gmail and Microsoft 365 accounts.

What you should see: the account's profile and last check time are updated. The profile is stored on the account record. We did not find it shown on the mailbox form, so look for it in the per-account diagnostic snapshot, which reports the sync profile.

Message preparation on IMAP

Because IMAP is polled, MailDesk Pro prepares message bodies so that messages open quickly. See How email previews are stored.

If it does not work

Symptom Likely cause Safe next step
The profile is Unknown No probe has run, or the probe could not connect Click Probe IMAP capabilities. Check the IMAP login and network.
New mail is slow to appear IMAP is polled, not pushed This is expected. Compare the times in How quickly email synchronizes.
A message pauses before it opens Its body was not prepared yet It is fetched when you open it.
The profile looks wrong after a server upgrade The probe has not run again yet Click Probe IMAP capabilities.

For other sync problems see Fix missing or delayed emails.

Next step

Fix missing or delayed emails