GNOME Bugzilla – Bug 409345
Copy folder(s) should handle errors better
Last modified: 2021-05-19 12:14:16 UTC
Please describe the problem: When copying mail folders (IMAP, don't know what other things have a subscription like concept), if a message is somehow invalid, the operation stops. No further messages are copied, and folder isn't subscribed to. This is especially annoying when you consider that the "obvious" thing to do is try the exact same thing again, though possibly deleting the problem message. This will fail "folder exists", and be confusing because it doesnt show up in the folder/tree view. Steps to reproduce: 1. Have two IMAP servers 2. Copy a folder from one server to the other 3. See the operation fail (Invalid header in my case) 4. Find an delete suspicions messages, or just do the operation again Actual results: 5.. Error, "folder exists" (folder is not visible, as it was not subscribed to) Expected results: At the very least, the folder should be subscribed to when it is created (and this, immune to later failures in the operation at hand). Ideally, the copy operation should only fail on that single message "Abort, retry message, skip message". Or attempt some kind of recovery, deleting the folder. Does this happen every time? Whenever the server fails, yes. Other information:
Thanks for a bug report. I see the folders are subscribed after copy these days, but the required code is there since 2005 or maybe earlier, thus probably other thing failed, maybe a showing of the folder in the folder tree. With respect of the error on one message, being skipped and continue with a next message, it-s not that easy. Server usually doesn't return error code number, I'm not sure if there are created any common error codes for IMAP at all, it returns just a description of the issue, which can be localized or otherwise different server by server, thus the code cannot check properly whether the error is related to one message only, or some general error like an unexpected disconnect from the server due to a maintenance or such. For this, I think, the only possible thing is the subscribe on folder copy approach, which is there already. I tested this on git master, but it's like 3.6.x in this part.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/Community/GettingInTouch/BugReportingGuidelines and create a new bug report ticket at https://gitlab.gnome.org/GNOME/evolution/-/issues/ Thank you for your understanding and your help.