Summary: | Uploading a mail in a remote IMAP folder does not show progress status in Kmail | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | orontobate |
Component: | IMAP resource | Assignee: | Daniel Vrátil <dvratil> |
Status: | CONFIRMED --- | ||
Severity: | minor | CC: | dvratil, kdepim-bugs, orontobate, vkrause |
Priority: | NOR | ||
Version: | 5.4.1 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
orontobate
2017-03-08 21:18:07 UTC
Upon initial investigation, it turns out this might be really tricky to implement properly because Qt does not really provide us with any means of monitoring the progress of data being sent. It simply buffers the entire payload and passes it to the kernel, which buffers it internally again. We could maybe try to abuse the way Qt works with its internal buffers and pass the payload to Qt in several smaller chunks, then we would get notified upon every chunk being written to the socket and we could check how much data remains in Qt's the buffer. To get a reasonable progress reporting we would, however, have to pass the payload in really small chunks. The question is what is the performance impact (in the terms of upload speed) compared to just passing the entire payload to the kernel in one piece to deal with it internally. At least a status notification without progress bar could be possible? Just to be notified when the process end with success |