class Net::IMAP

def clear_cached_capabilities

Related: #capable?, #capability, #capabilities_cached?

servers.
change. Explicitly calling this _should_ be unnecessary for well-behaved
Net::IMAP automatically discards its cached capabilities when they can

query method is called.
This forces a #capability command to be sent the next time a #capabilities
Clears capabilities that have been remembered by the Net::IMAP client.
def clear_cached_capabilities
  synchronize do
    clear_responses("CAPABILITY")
    @capabilities = nil
  end
end