The other reasonable option, and the one that I believe most IMAP clients follow is at initial launch create the folders if they do not exist. This is the solution I would endorse.
-Charles
Dean Jones wrote:
Instead of creating a folder that possibly some people might not want, why not just simply check if there is a Trash folder and if there isn't, simply delete the message and expunge? If there is a trash folder, move it to Trash.
If this sounds better, I can write a quick patch for it.
On Mon, 13 Feb 2006 16:17:24 -0700, Jacob Brunson webguy@byu.edu 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