···4646spam = "spam" #check capitalization of your pre-existing Spam folder, sometimes might be `Spam` with `S`
4747# tab_order controls the left-to-right tab sequence; omit to use the built-in default order. e.g.:
4848# tab_order = ["inbox", "to_screen", "feed", "papertrail", "waiting", "someday", "scheduled", "sent", "archive", "screened_out", "drafts", "trash"]
4949+# Gmail uses different folder names — see docs/gmail.md for the correct mapping.
49505051[ui]
5152theme = "dark" # dark | light | auto
+60
docs/gmail.md
···11+# Gmail Configuration
22+33+Gmail uses special IMAP folder names prefixed with `[Gmail]/`. neomd works with Gmail, but requires adjusted folder mappings and comes with performance caveats.
44+55+## Folder Mapping
66+77+Gmail has built-in system folders that must be referenced by their IMAP names. Custom neomd folders (ToScreen, Feed, etc.) are created as regular labels.
88+99+```toml
1010+[folders]
1111+inbox = "INBOX"
1212+sent = "[Gmail]/Sent Mail"
1313+trash = "[Gmail]/Trash"
1414+drafts = "[Gmail]/Drafts"
1515+to_screen = "ToScreen"
1616+feed = "Feed"
1717+papertrail = "PaperTrail"
1818+screened_out = "ScreenedOut"
1919+archive = "Archive Neomd"
2020+waiting = "Waiting"
2121+scheduled = "Scheduled Neomd"
2222+someday = "Someday"
2323+spam = "[Gmail]/Spam"
2424+tab_order = ["inbox", "to_screen", "feed", "papertrail", "waiting", "someday", "scheduled", "sent", "archive", "screened_out", "trash"]
2525+```
2626+2727+### Why "Archive Neomd" and "Scheduled Neomd"?
2828+2929+Gmail reserves `[Gmail]/All Mail` for its own archive (which includes all labeled emails, not just archived ones). Using it as neomd's archive would mix archived emails with everything else. `Archive Neomd` creates a clean, dedicated folder.
3030+3131+Similarly, Gmail doesn't expose its scheduled send feature via IMAP, so `[Gmail]/Scheduled` doesn't exist. `Scheduled Neomd` avoids Gmail creating it under `[IMAP]/Scheduled`.
3232+3333+### Gmail system folders reference
3434+3535+| Gmail folder | IMAP name |
3636+|---|---|
3737+| Inbox | `INBOX` |
3838+| Sent Mail | `[Gmail]/Sent Mail` |
3939+| Drafts | `[Gmail]/Drafts` |
4040+| Trash | `[Gmail]/Trash` |
4141+| Spam | `[Gmail]/Spam` |
4242+| All Mail | `[Gmail]/All Mail` |
4343+| Starred | `[Gmail]/Starred` |
4444+| Important | `[Gmail]/Important` |
4545+4646+## Performance Warning
4747+4848+Gmail's IMAP is significantly slower than dedicated email providers. On a sustained session, each IMAP command takes ~180ms on Gmail vs ~12ms on providers like Hostpoint or Fastmail. This means every folder switch, email open, and move feels noticeably slower (~570ms vs ~33ms per folder switch).
4949+5050+See the [Benchmark section](../README.md#benchmark) in the README for detailed measurements.
5151+5252+For the best neomd experience, consider a dedicated email provider. If you still want to use Gmail, it works — just expect ~1 second per action instead of instant.
5353+5454+## App Password
5555+5656+Gmail requires an app-specific password for IMAP access:
5757+5858+1. Enable 2-Step Verification at https://myaccount.google.com/security
5959+2. Generate an app password at https://myaccount.google.com/apppasswords
6060+3. Use the generated password in your `config.toml` (not your Gmail password)