Synchronization with the mail server
What Mail keeps and what stays on your mail server, receiving the mail server's folders (Gmail labels) and sending your changes back, and how older mail comes while you scroll.
Mail is a window onto your mailboxes, not a copy of them. This page explains what that means, how the folders on your mail server (Gmail's labels) come into Mail, and when what you sort here changes the mail server too.
The mail stays on the mail server
Mail does not download your mail. For each mailbox it keeps here:
- the headers of the newest messages — sender, recipients, subject, date, read and star marks;
- the text of a message once you have opened it, so it opens fast the next time.
Attachments are not kept: each download is fetched from the mail server again.
The first time, Mail brings the newest few hundred messages of the Inbox and fewer of Sent, Trash and Spam. After that it checks for new mail every two minutes while the page is open, when you press Check mail, and on the server every minute even when the page is closed. A folder where nothing happened since the last check is passed over in a moment, so many folders do not slow the check down.
What already reaches the mail server, whatever you choose below:
- replies and new messages (they go into the mailbox's Sent folder);
- read and unread marks, stars;
- moving to the trash, to spam and back, deleting for good.
And the other way round: a message deleted on the mail server, for example in your phone's mail app, disappears from Mail at the next check.
Older mail while scrolling
When you scroll past the last message kept here, Mail asks the mail server for the next older messages of that folder by itself and adds them to the list — keep scrolling and they keep coming, there is nothing to press. This works in the Inbox (and its bundles), Sent, All mail, Trash, Spam and folders in step with the mail server. The button Older mail from the mail server at the end of the list stays only as a fallback, for example after a failed request.
Once the oldest message of the folder on the mail server is here, the button is no longer shown. When the older messages that came were all sorted elsewhere (into a sender's folder, Newsletters, Notifications, Done), Mail asks for the next ones by itself, so the list grows. If the mail server does not answer, the button rests for 10 minutes.
The older mail also comes by itself. You do not have to scroll: at every check of the mailbox Mail brings the next batch of each folder's older letters, until the folder's oldest letter is here. While that is going on, a quiet line at the very end of the list says Not all the mail is here yet: 1 240 of 18 300… (cut to one line — hover over it for the whole sentence) — so you know that a letter you miss may simply not have arrived here yet. The line goes away once everything is here. Letters brought this way stay; nothing is forgotten again after a week.
How much is kept. The Inbox and Sent come whole. Of the Trash and Spam the newest 100 letters are kept, of each folder in step with the mail server the newest 1 000 — plus everything that arrives from then on. The rest of such a folder stays on the mail server: scroll to the end of the list (Older mail from the mail server) or search with In the text ticked, and those letters come too — for a week, after which Mail forgets them again unless you starred them, marked them done, put them off or filed them. Nothing is ever deleted on the mail server by this.
If the mailbox was away for a long time (the mail server did not answer, the password had changed), every letter that came meanwhile arrives over the next few checks — not only the newest ones.
Your folders and the mail server's folders
Your own folders (My folders) live in Mail. Filing a message into one takes it out of the Inbox here; whether anything changes on the mail server is up to two switches, set for each mailbox.
Two switches
Receive the folders from the mail server (for Gmail: Receive the folders from Gmail) — on for a new mailbox. The round ? beside each switch shows in a sentence what it does: point at it with the mouse, or press it (on a phone a press opens it, a press elsewhere closes it).
- The mailbox's folders on the mail server — for Gmail, its labels — come here as your folders, with their mail.
- A folder made, renamed or deleted on the mail server is so here at the next check.
- Nothing changes on the mail server. What you sort here stays here; the mail stays where it lies on the mail server.
Send my changes to the mail server (for Gmail: Send my changes to Gmail) — off unless you switch it on, and only together with the first one.
- Your folders here are made on the mail server (Gmail: as labels).
- Moving a message into a folder here moves it there too (Gmail: changes its label).
- A folder renamed, moved or deleted here is so on the mail server too.
- Mail is warned in amber while it is on: what you do here changes the mailbox on the mail server itself.
Read and unread marks, stars, the trash, spam, deleting for good and the letters you send reach the mail server either way.
Send your changes only to the mailbox you also look at elsewhere — for example Gmail, if you want to see your sorting in the Gmail app on your phone. If you read your mail only here, receiving is enough: the mail server is never rearranged.
Before a switch goes on
Each switch asks first when you turn it on — in the mailbox's form and in the window of the chip (there Turn on the synchronization asks for the first one). Turning a switch off never asks.
The window says plainly that this is only about folders:
- Receive the folders — the mailbox's folders (Gmail's labels) come here as your folders. Your folders are one list for all your mailboxes: a mailbox that sends its changes gets these folders made on its mail server too — only the folders, empty. Letters are never copied from one mailbox to another. While Send my changes is off, nothing changes on this mail server: a letter you file here into a folder stays in the inbox there.
- Send my changes — every folder you have here is made on this mail server, also the folders that came from your other mailboxes (for example, your Gmail's labels). They are made empty: each mailbox keeps only its own letters, filed into folders of the same names. A letter moved here into a folder moves there too. A mailbox that does not send its changes is left alone: a letter filed into a folder its mail server does not have stays in its inbox.
Do not switch on Send my changes in a mailbox — a work one, say — where the folders of your other mailboxes (your personal Gmail labels) must not appear. If it already happened: switch it off for that mailbox, then delete the unwanted folders in that mailbox's own webmail. They hold no letters from your other mailboxes.
The first time the window only asks. From the second time on it has the tick Do not show this message again at the bottom; once you tick it and answer, that switch's window is not shown again. Each switch has its own tick, and it is kept with your account — the same on every device.
Where to set them
- Adding a mailbox: the form ends with the block Synchronization with the mail server — the first switch on, the second off. Change them before Add the mailbox.
- Later: the gear → Mailboxes → the pencil (Change) beside the mailbox: the same block. Saving applies the change and checks the mailbox at once.
- The chip under a mailbox (in the list, and in the Mailbox summary at the top of its page) says how it is set — Folders: here only, Folders from the mail server or Folders in sync both ways. It opens the window Synchronization with the mail server: the same two switches and the mail server's folders (Folders of the mail server, or Labels of the mail server for Gmail) with the number of messages in each, as a tree — each folder under its own parent. Untick a folder you do not want here — it stays on the mail server only and is never brought here.
The received folders appear under My folders with a small mark. If you already have a folder of the same name in the same place, Mail uses it instead of making a second one.
When Send my changes to the mail server is switched on, every other folder of yours is made on the mail server too, and mail of this mailbox already filed in it is moved into it there (up to 100 messages at each check). Mail also subscribes to these folders on the mail server. Webmail (Roundcube and the like) and most mail programs show only the folders you are subscribed to.
Receiving only: what you can and cannot do
- Filing a message into any of your folders works as always — here only.
- A message that lies in a mail server folder can be put into another folder here; on the mail server it stays where it is.
- Such a message cannot go Back to the inbox without moving it on the mail server. Mail says so and names the folder: move it there yourself, or switch on Send my changes to the mail server for that mailbox.
- Deleting a received folder deletes it here only. It stays on the mail server with its mail and is not brought here again.
Switching it off
In the window of the chip → Turn off the synchronization (or the first switch off in the mailbox's form). The folders stay here, but the mail of this mailbox leaves them — it stays on the mail server.
Deleting a folder when changes are sent
The same window as for any folder (Deleting a folder) — what becomes of the folders inside and of the letters — says that the folder goes from the mail server too. Gmail: the label is deleted; its letters stay in Gmail's All Mail (or go to the trash, if you chose it). Other mail servers: the letters you chose to keep are moved first (to the Inbox or the folder chosen; to the trash when you chose it), then the folder is deleted there — so nothing is lost by accident.
Gmail's labels
Gmail has labels, not folders: one message may carry several labels. In Mail it is still one message. It is shown where Mail found it first (the Inbox is read before the labels), and its other labels are its other places on the mail server.
With Send my changes to the mail server on:
- Filing a received message into a folder here gives it that label and takes it out of the Inbox.
- Filing a sent message into a folder adds the label; Gmail always keeps it in "Sent Mail" as well.
- Taking a message out of a folder ("Back to the inbox") removes the label.
Gmail's own system folders (All Mail, Important, Starred and the like) are never offered as folders.
If the mail server refuses
If the mail server does not take a change — a folder it cannot rename, a message it cannot move — Mail keeps the change here and shows the mail server's answer, for example The mail server of … did not take the change: …. Try again later, or make the change in your provider's own app.
Questions
Will receiving the folders change my Gmail? No. Only Send my changes to the mail server changes anything there, and only when you do something: file a message, make, rename or delete a folder.
Does it download my whole mailbox? No. Only headers of the newest messages of each folder, as for the Inbox.
Can I send changes for one mailbox and not another? Yes, both switches are set per mailbox.
Will my letters from Gmail be copied into my work mailbox? No. Letters are never carried from one mailbox to another. With Send my changes on in the work mailbox, only the folders (empty) are made there, and that mailbox's own letters are filed into them.
Administrators: see How Mail works.
Names you cannot give a top-level folder
A folder of your own at the top of the folder list cannot be called as mail servers call their own folders: Inbox, Sent, Trash, Spam / Junk, Drafts, Archive, Outbox, All mail and the same words in other languages («Корзина», «Отправленные», "Papierkorb" …). Mail answers: "Trash" is the name of a system folder — it cannot be added at the top level. Put it inside another folder or choose another name.
Inside another folder the name is free: "Clients → Archive" or "2025 → Sent" are ordinary folders. Such a folder cannot be dragged out to the top level, though — Mail gives the same answer and leaves it where it was.
The reason: kept in step with a mail server, a top-level folder named "Trash" would be taken for the mail server's real trash — letters filed there would be cleaned out by the mail server, and deleting it here would delete the mail server's own folder. If you already have such a top-level folder from before, it works as it did but is not linked to the mail server's folder of that name: rename it or move it into another folder.
When a folder disappears on the mail server
A folder deleted in another mail program leaves Mail too — but not at once: Mail waits until the mail server has listed its folders three times in a row without it (a few minutes). A mail server that answers with only a part of its folders for a moment therefore deletes nothing here, and your sorting rules for those folders stay.