[imapfilter-devel] Using imapfilter to migrate IMAP folders

Lefteris Chatzibarbas lefcha at hellug.gr
Fri Sep 12 18:57:10 EEST 2003


On Fri, Sep 12, 2003 at 08:51:33AM -0400, Brian Long wrote:
> Lefteris,
> 
> Thanks for your response.  The user I was trying to migrate is a Cisco
> IOS developer and he was looking at your code.  He feels the following
> is true and we were not able to migrate his mail using imapfilter.
> 
> ---------
> It is written to assume that if it does a socket receive
> that it will get an entire message.  Unfortunately it does
> not.  So for example, if a server response message crosses
> to socket read()'s it will not recognize the response.
> 
> The same is true for socket write()'s.  It assumed that if
> it did a write of <n> bytes that <n> bytes were gauranteed
> to have been sent.  This is not true for stream sockets.
> The write issue was easy to solve, just put the write into
> a while loop.  The read issue is much harder to fix.
> I've looked at the source some and I'm not sure what the
> right way, nor the easy way, is to fix it...
> ---------

Can you supply me with more information on how exactly imapfilter fails
to move the messages between the IMAP servers?  Details on what exactly
happened during rcopy/rmove or logs produced by a built of imapfilter
with the DEBUG option enabled would be useful.


PS. I don't know if it is relevant to the problem, but some particular
IMAP server, does not return the correct size of a message, and it
causes imapfilter and other IMAP4rev1 compliant mail clients, to fail
when doing things like fetching of a message...





More information about the Imapfilter-devel mailing list