Open Profpatsch opened 7 years ago
I guess you're right. I think offlineimap doesn't split the file into smaller chunks.
I don't know why the server has this requirement, though.
Besides increasing the timeout, it'd be good to look at rewriting this algorithm, possibly add functions to imaplib2, to do an IMAP MOVE command and IMAP COPY command, where appropriate, to save on bandwidth, increase speed and improve reliability. https://tools.ietf.org/html/rfc6851 Documentation from 2013 for IMAP MOVE with semantics on how MOVE is an atomic operation and can be simulated with COPY, set the flag DELETE, and EXPUNGE. https://tools.ietf.org/html/rfc4315 Docs for UIDPLUS with details on UID COPY.
@chris001 You're right. Patches are welcome. ,-)
@nicolas33 Thanks :) Instead of patching, how about exploring the possibility of using IMAPClient
https://github.com/mjs/imapclient a newer improved code base which is, in the opinion of many, better suited for dealing with email messages at a higher level, than imaplib
, it uses imaplib
internally, which implements copy()
and move()
. Certainly worth looking at. Offlineimap shouldn't have to implement error-prone parsing routines to handle the raw text responses from the IMAP server, this job is something for a middle layer, such as IMAPClient
, to do solidly. Your thoughts?
@chris001 Open a new bug report or start a new mailing list thread to not hijack this report, please.
@nicolas33 New issue opened! #415 @Profpatsch Sorry to hijack your issue!
The error from https://github.com/OfflineIMAP/offlineimap/issues/262 still happens.
Steps to reproduce the error
In my case I had a message that was 40MB and I wanted to move it from my inbox folder to the archive folder. After some time I always get:
Looks to me like the transfer takes >120 sec (quite an arbitrary time) and offlineimap doesn’t tell the server it’s still transferring, so the server aborts.