On 2017/06/22 23:44, Eric Valette wrote:
> On 06/22/2017 03:57 PM, Wayne wrote:
>
>> You might be correct. Because if I send the message to an account and it
>> is in the offline store, then it displays quickly.
>
> That is typically why it is actually hardly usable in company
> environment where your home is usually on a filer and you need to flush
> your imap inbox because of quotas...
>
> Almost 4 years since initial bug...
>
> -- eric
>
>
I hope the buffering patch (and subsequent short read issue patch) will
be in the C-C source tree by the end of this year somehow.
(And I am very serious in getting the buffering patch (and patch to
handle short read) since I found my home NAS based on FreeNAS works very
well and so well in fact that I am thinking of moving my home e-mail
storage to it although I am using Windows TB client at home. I use Linux
TB client at work. )
Fixing this buffering write issue and better error handling (or report)
and patch to handle short read [this is essential for linux client that
needs to talk remote file system. Windows TB does not seem to suffer
since Windows low-level I/O primitives seem to handle the re-trying of
short-read automatically. Linux doesn't. ]
Right now, I am looking into an issue found by the cleanup of the my
buffering patch code.
Quite unexpectedly there is a code structure issue which makes the
"optimization" of using file stream open for Berkeley MBox style file,
which has been the default storage format since the beginning, unusable
with my patch somehow. I have no idea why...
My patch opens/closes file stream quite accidentally and
so did not hit upon this issue of failure to optimize issue during patch
creation.
I don't particularly think that losing this optimization is bad since
with Maildir storage format, which many want for flexible handling of
messages with external programs, can't use this optimization anyway (it
has to open/close a file for writing out each message during download or
move/copy.)
And to be frank, I *think* buffering write will speed things up
considerably for large mail attachment, etc. for people who need to
store their mails on remote file server and incurring one pair of
read/write in real world situation does not hurt much.
Of course, though, there may be a performance issue despite my *GUESS*.
I will be *MEASUREING* the impact of losing the optimization in July so
that we can decide if we can do away with the "optimization" once for
all and simplify the code a bit.
(Turns out I have to modify my local scripts mozconfig files, etc. to
create non-DEBUG version for the comparison. Takes time...)
Preliminary data shows that for empty LOCAL e-message, the optimization
seems to count.
But with real world e-mails,
Chiaki