Skip to content

imap: close the connection on premature done instead of finalizing - #23322

Closed
MegaManSec wants to merge 1 commit into
curl:masterfrom
MegaManSec:imap-premature-done
Closed

MegaManSec wants to merge 1 commit into
curl:masterfrom
MegaManSec:imap-premature-done

Conversation

@MegaManSec

Copy link
Copy Markdown
Contributor

A premature imap_done() sent the APPEND terminator over the connection. Mark it for closure and skip the send instead, matching the error path.

A premature done() no longer sends the APPEND terminator; it marks the
connection for closure like the error path does.

Ref: curl#23260
@github-actions github-actions Bot added the IMAP label Oct 9, 2026
@bagder bagder closed this in 5e20136 Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants