SUMMARY For local resources, it should be possible to bypass akonadi cache and fetch the items directly from the source, all the times. Additionally, it should be possible to disable cache for any other resources for debugging purposes as well as resources that are not correctly recognised as local. STEPS TO REPRODUCE N/A SOFTWARE VERSIONS (available in About System) KDE Plasma Version: 5.13.5 KDE Frameworks Version: 5.50.0 Qt Version: 5.11.2 ADDITIONAL INFORMATION N/A
For local resources, we typically keep around only metadata and email envelope in the Akonadi cache. The actual email headers and body are loaded from the resource on demand, cached inside Akonadi temporarily and then expired after some configured period (usually 5 minutes or so). The same can be configured for any resource (for example the IMAP resource works the same way unless you select "Download email for offline access") - the caching and expiration policy can actually be configured on per folder basis, but generally, you configure it for the entire resource (by changing it in the top-level folder) and let the subfolders inherit the policies. It is not possible to bypass the caching completely (that is including the metadata), not even for local resources, which is by design.