imapclient icon indicating copy to clipboard operation
imapclient copied to clipboard

Don't assume capabilities have been cached when sending literals

Open mjs opened this issue 1 year ago • 1 comments

_send_literal was assuming that _cached_capabilites was populated when checking for LITERAL+ but this isn't guaranteed. has_capability is now used to check for LITERAL+. This will populate the capabilities cache if it hasn't been already.

Fixes #560

mjs avatar Dec 01 '23 20:12 mjs

@mjs This fix works for me. Would be great to have it in the next release 👍

Unpublished avatar Mar 27 '25 20:03 Unpublished