OK we are going to do a number of things to address this issue. One is to address the timeout directly. The other is implement this bug:

Bug 28013 – Use IMAP COPY rather than APPEND for messages moved between folders