[imapfilter-devel] Using imapfilter to migrate IMAP folders

Brian Long brilong at cisco.com
Fri Sep 12 15:51:33 EEST 2003


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...
---------

/Brian/

-- 
       Brian Long                      |         |           |
       Americas IT Hosting Sys Admin   |       .|||.       .|||.
       Cisco Linux Developer           |   ..:|||||||:...:|||||||:..
       Phone: (919) 392-7363           |   C i s c o   S y s t e m s





More information about the Imapfilter-devel mailing list