imapclient
imapclient copied to clipboard
Don't assume capabilities have been cached when sending literals
_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 This fix works for me. Would be great to have it in the next release 👍