Implementing capability caching
Based on this comment by @jonhoo on #243 this PR adds the ability for Client and Session to cache returned Capabilities.
Future work should try to parse (the optionally sent) Capabilities from untagged responses to EHLO, STARTTLS, and AUTHENTICATE automatically; if none are sent they should be automatically queried.
Codecov Report
Merging #255 (04f5c9e) into main (41c5597) will decrease coverage by
0.8%. The diff coverage is33.8%.
Additional details and impacted files
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/client.rs | 91.5% <26.0%> (-1.7%) |
:arrow_down: |
| src/types/capabilities.rs | 55.9% <56.2%> (+0.1%) |
:arrow_up: |
I think the last bit here now is https://github.com/jonhoo/rust-imap/pull/255#discussion_r1125573266
Hi @dequbed, I really liked that you were adding support for SASL in #243. Do you have any plans to update this PR? If you're short on time, I would be happy to help getting this (and that one) merged!