Skip to content

Skip mail folders that cannot hold messages #1942

Closed

Description

@ichavchavadze

Description

With "Read all folders" (readAllFolders) turned on, receiving mail from a Gmail account fails with folder cannot contain messages, and nothing is received. Gmail has a [Gmail] folder that holds [Gmail]/Spam, [Gmail]/Sent Mail and the other system folders but cannot hold messages itself, and receiving tries to open it as any other folder.

Steps to reproduce:

  1. Add a Gmail account (imap.gmail.com, port 993, IMAPS, an app password) and turn on "Read all folders" for it.
  2. Receive mail for the account.

Affects 6.3 and 7.0.

Reason

A Gmail mailbox cannot be received with "Read all folders" at all.

Fix

A folder that cannot hold messages is shown in the folder tree but not read, and its subfolders are read as usual.

Activity

  1. added a commit that references this issue on Oct 29, 2026
    7129900
  2. changed the title [-]Fix receiving mail from all folders: emails of different folders overwrite each other, Gmail fails[/-] [+]Skip mail folders that cannot hold messages[/+] on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions