Skip to content

Gmail IMAP gets disconnected when moving an email to Trash #172

Closed

Description

@d99kris

Description:
This issue was introduced around 2024 Q3 and is not specific to nmail, it can be reproduced with curl as well. It was reported in Google community forums - Gmail IMAP connection gets closed when moving an email to Trash - but it has not yet been fixed on Gmail side.

Since it's an inconvenience to have nmail lose server connection and reconnect every time one deletes email (with an Gmail account), the plan is to implement a workaround for Gmail using UID COPY to Trash, and then mark the email for deletion in source folder, and expunge emails marked for deletion.

How to reproduce it:
Set up nmail with a Gmail account, press d to delete an email.
The top right status message indicates Disconnected and then Reconnecting.

Environment:

  • Version: v5.2.1
  • OS / distro: macOS v15.1.1

Activity

  1. self-assigned this
    on Dec 7, 2024
  2. changed the title [-]Gmail IMAP gets diconnected when moving an email to Trash[/-] [+]Gmail IMAP gets disconnected when moving an email to Trash[/+] on Dec 7, 2024
  3. d99kris commented on Jan 24, 2026

    @d99kris
    OwnerAuthor

    This workaround has now been disabled - see #188.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions