Blog/ Email glossary & concepts

What Are IMAP Special-Use Folders and Why Do They Matter?

Nafiul HasanNafiul Hasan· 8 min read
Diagram of IMAP special-use folders: a server tagging mailboxes with \Sent, \Drafts, \Trash, \Archive and \Junk attributes so every email client agrees which folder is which

The short answer

IMAP special-use folders are mailboxes tagged with a standard attribute — like \Sent or \Trash — so the server tells each email client which folder is which, instead of the client guessing by name. Duplicate Sent folders appear when a client ignores or misses that tag and saves sent mail to a folder it creates itself.

IMAP special-use folders are standard tags that tell your email app which folder is Sent, Trash or Drafts — and why duplicate Sent folders appear.

On this page
  1. 01How do IMAP special-use folders work?
  2. 02Why do I have two Sent folders?
  3. 03Special-use annotation vs. matching by folder name
  4. 04Common misconceptions about special-use folders
  5. 05How special-use folders show up in AI Emaily

If you have wondered what IMAP special-use folders are, and why your Sent folder keeps splitting in two across devices, the short answer is simple. They are ordinary mail folders that carry a standard label telling your email app what each one is for. Instead of an app guessing that a folder named Sent holds your sent mail, the server annotates that folder with the attribute \Sent, and every app that reads the annotation agrees on where sent mail goes.

This small piece of the IMAP standard solves a surprisingly common headache: two Sent folders, a missing Archive, drafts that appear twice. Those problems almost always trace back to clients disagreeing about which folder is which. Special-use annotation is the mechanism meant to keep them in agreement. This guide explains how it works, why it breaks, and what to do about it.

How do IMAP special-use folders work?#

Every IMAP account is a set of folders — the protocol calls them mailboxes — and a client discovers them with the LIST command. For a long time, a LIST response returned only each folder's name. The client then had to guess a folder's job from that name, which works until two clients guess differently.

RFC 6154, published in March 2011, fixed this with the SPECIAL-USE extension. It defines a small set of attributes a server can attach to a folder to declare its role. A client that wants them asks for the LIST command's SPECIAL-USE return option, and the server returns the attribute next to the folder. A server that supports the extension advertises the SPECIAL-USE capability in its CAPABILITY response.

IMAP's current version, IMAP4rev2, was published as RFC 9051 in 2021 as the successor to IMAP4rev1; the special-use attributes themselves are defined by RFC 6154. The standard lists seven of them. Each is a hint about a folder's purpose, not a rename — the folder keeps whatever name it already has.

AttributeWhat it marks (RFC 6154)
\SentHolds copies of messages that have been sent
\DraftsHolds draft messages being composed but not yet sent
\TrashHolds messages deleted or marked for deletion
\JunkHolds messages deemed to be junk mail
\ArchiveUsed to archive messages
\AllPresents all messages in the user's message store
\FlaggedPresents all messages marked as important
A LIST response with a special-use attribute
ClientA001 LIST "" "*" RETURN (SPECIAL-USE)
Server* LIST (\Sent) "/" "Sent Mail"
MeaningThe folder named Sent Mail is this account's Sent folder

Support is optional

RFC 6154 makes every attribute optional: a mailbox may have none, one, or more than one, and any server may support any combination of them or none at all. A missing tag is not a bug — it is a server that never set one.

Why do I have two Sent folders?#

When you send a message, most clients keep a copy by uploading it to your Sent folder with the IMAP APPEND command, unless the server saves the copy for you. To do that, the client has to know which folder is the Sent folder.

Without a special-use tag, the client falls back to a name it expects. One client looks for Sent, another for Sent Items, a third for Sent Messages or Sent Mail. If the expected name is not there, the client often creates it. That is how you end up with two Sent folders holding different messages across your devices.

Special-use annotation removes the guesswork. The folder tagged \Sent is the Sent folder, whatever it happens to be named, so every compliant client writes to the same place. The same mechanism is why a client can reliably find Trash tagged \Trash, file to an Archive tagged \Archive, or store drafts in a folder tagged \Drafts without inventing a duplicate.

The missing-Archive problem is the mirror image. If your server never flagged a folder with \Archive and no client ever created one, an app that offers an Archive action has nowhere agreed-upon to put the message — so it either makes its own Archive folder or the button appears to do nothing.

Two Sent folders is not the same as two copies

A separate issue looks similar: one Sent folder with every message duplicated. That happens when the server saves a sent copy and the client uploads one too. Special-use tags decide which folder is Sent; they do not stop a double-save. The fix is to turn off the client's save-sent-messages setting when the server already does it.

Special-use annotation vs. matching by folder name#

Special-use annotation is one of two ways a client can decide a folder's role. The older way is to match on the folder's name. Both still exist, and most clients use name-matching as a fallback when a server offers no tags.

The difference shows up most across languages and clients. A name-matching client that expects Sent will not recognize Enviados, Gesendet or Elements envoyes as the Sent folder. A special-use tag carries no language, so it works the same everywhere.

Diagram showing three email clients all routing sent mail into one folder tagged \Sent, versus each client creating its own separate Sent folder when no special-use tag is present
With a \Sent tag, every client writes to the same folder; without it, each client falls back to the name it expects.
DimensionSpecial-use annotationMatching by folder name
How the role is decidedThe server declares it with a LIST attribute such as \SentThe client guesses from the folder's name
Agreement across clientsHigh — every compliant client reads the same tagLow — clients expect different names
Non-English folder namesUnaffected — the tag carries no languageBreaks on names like Enviados or Gesendet
Server support requiredYes — the server must advertise SPECIAL-USENo — works against any IMAP server
Tendency to spawn duplicatesLow when the tag is present and honoredHigh

Common misconceptions about special-use folders#

A few beliefs about special-use folders cause most of the confusion. Here is what each one gets wrong.

  • It is a Gmail feature. It is not — special-use is an IMAP standard defined by RFC 6154, and most modern IMAP servers support it, not a single provider.
  • The tag renames the folder. It does not. Your Sent folder keeps its name; \Sent is metadata describing the folder's role, read by clients rather than shown to you.
  • Every server supports it. Support is optional. The RFC says any server may support any combination of the attributes, or none at all, so older or minimal IMAP servers may expose no special-use tags.
  • It stops duplicate sent messages. It stops duplicate Sent folders. Two copies of the same message inside one folder come from the server and the client both saving a copy, which is a separate setting.
  • A folder can have only one role. A mailbox may carry more than one special-use attribute, per the RFC — none, one, or several at once.
  • There was never a standard before 2011. Before RFC 6154, Google and Apple used a non-standard XLIST command to convey folder roles; the RFC replaced it with an interoperable mechanism.

How special-use folders show up in AI Emaily#

The reason your Sent folder can fragment across devices is that each client independently decides which mailbox is which. An AI email assistant that unifies several accounts has to get that mapping right, or it files sent mail and archives into the wrong place. AI Emaily reads each server's special-use attributes when it connects a mailbox, and falls back to name-and-language heuristics only when a server does not advertise them — so a Sent action lands in the folder the server itself calls \Sent.

We build AI Emaily, so treat this as the vendor describing its own product. Special-use mapping is table stakes, not magic: if your server never flagged an Archive folder and no client ever created one, no app can invent the annotation for you — you may still need to set the folder's role once.

You can watch how it maps your existing folders on a real account during the 7-day free trial, which takes a card and charges nothing if you cancel before day seven. See AI Emaily pricing for plan details, or the connect-a-mailbox guide for how folder mapping runs on first sync.

Frequently asked

Nafiul Hasan

Written by

Nafiul Hasan

Nafiul Hasan is an entrepreneur and AI automation system builder with 10+ years of experience turning messy, manual workflows into reliable automated systems. He designs and ships AI enterprise solutions end-to-end — the agent logic, the data plumbing, and the product people actually use — and founded AI Emaily to give busy professionals their attention back. He writes here from the builder's seat: what works, what breaks, and how to put AI to work without giving up control.

EntrepreneurAI Automation System BuilderAI EnthusiastBuilds AI Enterprise Solutions10+ years experience
More from Nafiul
Ready when you are

Connect every mailbox and let the folders line up.

AI Emaily reads each server's special-use folders on first sync, so Sent, Drafts and Archive map to one place across accounts. See it on your real inbox with a 7-day free trial.

  • 7-day free trial
  • Cancel anytime
  • Every provider