Florian Sperber wrote:
Thomas Bruederli schrieb:
<snip>
btw, without having it tested, the admin of a roundcube installation should be able to disable the trash folder behaviour, by using following setting in main.inc.php: // move messages to this folder when deleting them // leave blank if they should be deleted directly $rcmail_config['trash_mbox'] = 'Trash';
I guess leaving the trash folder parameter blank should exactly to that in the current version. The name of the Trash folder is passed to the client and depending on whether this is filled or blank the client tells the server either to move the message to the specified folder or to delete it. The delete command will also be sent if hitting 'delete' when a message already is in the trash folder.
Here's the code in app.js that should handle empty trash_mbox correctly:
if (this.task=='mail' && this.env.trash_mailbox && String(this.env.mailbox).toLowerCase()!=String(this.env.trash_mailbox).toLowerCase())
this.move_messages(this.env.trash_mailbox); else if (this.task=='mail') this.delete_messages();
Regards, Thomas
Here is a part of the function, i will commit the change if sf is working again.
<snip>
Kind regards
Florian Sperber