Hi everybody
After following this thread a while, here are my 2 cents about this: I admit that the current behavior is not right because deleting can fail. The patch submitted by Jacob would solve this and that's what IMO should happen. Choice is good, I agree, but I'm not sure how many of the "dummy" users have ever seen the settings for deleting messages in their mail client. The number of configuration parameters an end-user has to deal with should be kept low.
I intended to make the Trash folder (as well as the Sent folder) configurable for the admin who sets up RoundCube for a certain environment. For such an environment I can assume that all mail accounts are configured the same (like all having a folder "Trash" or "Deleted messages") and that a unique behavior is preferred. RoundCube should accept the configured settings and create that Trash folder if it does not exist. This is what Thunderbird does by default, I think.
Adding local or virtual folders is not possible right now because RoundCube can not store messages locally (except caching) and I actually wanted to avoid this. Having "local" folders would just mean that some of your messages are stored on the IMAP server, others are kept on the RoundCube server and if you also use a common mail client you will find other messages again on your local hard disk. Is that what people want?
Regards, Thomas
Jacob Brunson wrote:
I've had a couple of users complain about not being able to delete messages.
The cause turns out to be that they don't have a Trash folder.The attached diff/patch avoids this by creating the Trash folder if it doesn't exist before moving a message into it.
The only problem is that even though the Trash folder is created, it doesn't show up in the folders list until the whole folders list is refreshed.
-- Jacob Brunson Department of Chemistry, BYU