Bug 397580

Summary: Write / flush emails that are missing at disk
Product: [Frameworks and Libraries] Akonadi Reporter: Richard Bos <richard.bos>
Component: serverAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: normal CC: dschridde+kde, dvratil
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Richard Bos 2018-08-18 11:49:53 UTC
Equip akonadi with the possibility to write emails to disk that akonadi knows about in its database and that are missing at disk.

At the moment I've the following amount of emails at disk.  But kmail reports for sent-mail 13292 and for trash 307 emails.

unread totaal   folder
     0     53   inbox
     0      0   outbox
     0  13290   sent-mail
     0    302   trash


In case of recovery and the akonadi database is to be restored from scratch, not all emails from sent-mail and trash will be restored (as these are not disk, but are only known in the akonadi database).

The feature could be added to akonadictl, akonadiconsole or to e.g. kmail.

https://phabricator.kde.org/T638 seems to be related.
Comment 1 Daniel Vrátil 2018-08-25 11:13:27 UTC
Indeed we need some kind of mechanism for this, this has been on my todo list since forever.

Server-side change recording is definitely going to allow for this, but already with payload notifications we might be able to implement this inside of Monitor (so client-side).