Zero byte appends
Bron Gondwana
brong at fastmail.fm
Fri Jul 16 19:31:15 EDT 2010
On Fri, Jul 16, 2010 at 03:22:38PM +0200, Michael Menge wrote:
> Quoting Bron Gondwana <brong at fastmail.fm>:
>
> >Can anyone think of any good reason we should allow zero byte
> >files to be appended via IMAP? Just that I'm currently going
> >over the reconstruct code - and that's one of the few places
> >where it actually changes things.
>
> Some applications (e.g. Kolab) store other objects than Mail (e.g.
> Addressbooks, Calendar, Tasks or Notes) in IMAP folders. They might
> create empty objects for some reason.
Well that's pretty evil. The objects should still have a header,
right? Or do they just store blobs?
> >Reconstruct will always unlink a zero byte file and remove the
> >record - but IMAP APPEND will actually create one. We should
> >align the behaviour one way or the other!
If so, then reconstruct should let those messages stay!
Bron.
More information about the Cyrus-devel
mailing list