GNOME Bugzilla – Bug 724863
[imapx] Cannot copy folder into IMAP account
Last modified: 2014-03-03 17:17:58 UTC
Currently (git master, 3.10, 3.8) an attempt to copy a folder into an IMAPx account leads to an error that the destination folder cannot be opened, which makes sense, because it doesn't exists yet. After details search in the code it turned out that camel_store_get_folder_sync() is called with a CAMEL_STORE_FOLDER_CREATE flag set, but the IMAPx code simply ignores it and fails. I even tried to create folder first, but the circular dependency between imapx_store_get_folder_sync() and imapx_store_create_folder_sync() (I added the later call to the previous), makes it impossible, effectively causing hang of the operations (see backtrace below). I cannot fix this, due to the added complexity, thus it'll be better to have Matthew look on this.
+ Trace 233201
Thread 2 (Thread 0x7fef797da700 (LWP 17876))
Created attachment 269888 [details] [review] eds patch for 3.8.x for evolution-data-server 3.8.5; This is sufficient to make it work in 3.8.5. To not have it completely lost, and because some of its bits can be reused, I upload it here.
I'd like to get rid of CAMEL_STORE_FOLDER_CREATE and keep folder creation a separate operation. I've always thought mixing up operations like that was bad API design.
Fixed for E-D-S 3.11.92 in: https://git.gnome.org/browse/evolution-data-server/commit/?id=b8d9248b00227c946737c780b9411d43f45a091e