Roundcube Community Forum
Release Support => Older Versions => Release Candidate 1 => Topic started by: x3dfxjunkie on September 06, 2007, 12:31:09 PM
-
Here's the issue:
We have several users that, despite pleading/begging/bribing, insist on having emails marked for deletion and leaving them that way. I've configured roundcube to not use a Trash folder, skip deleted, flag for deletion and not protect the trash folder.
// move messages to this folder when deleting them
// leave blank if they should be deleted directly
$rcmail_config['trash_mbox'] = '';
// display these folders separately in the mailbox list.
// these folders will automatically be created if they do not exist
$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent');
// protect the default folders from renames, deletes, and subscription changes
$rcmail_config['protect_default_folders'] = TRUE;
// Set TRUE if deleted messages should not be displayed
// This will make the application run slower
$rcmail_config['skip_deleted'] = TRUE;
// Set true to Mark deleted messages as read as well as deleted
// False means that a message's read status is not affected by marking it as deleted
$rcmail_config['read_when_deleted'] = FALSE;
// When a Trash folder is not present and a message is deleted, flag
// the message for deletion rather than deleting it immediately. Setting this to
// false causes deleted messages to be permanantly removed if there is no Trash folder
$rcmail_config['flag_for_deletion'] = TRUE;
Under normal use, this is fine. The email is flagged for deletion and hidden upon next refresh. Things, however, get a bit hairy when the user actually MOVES an email (like they should for the email they are marking for deletion). Regardless of how the users does the move, either drop-down list or drag-n-drop, the messages marked for deletion in the Inbox are expunged after moving any messages out of that folder.
Is this a bug, or am I missing something in the config?
-Russ
-
I think i may have found it, commented out line 1383 and seems to work now.
"program/include/rcube_imap.inc"
1379 // send expunge command in order to have the moved message
1380 // really deleted from the source mailbox
1381 if ($moved)
1382 {
1383 //$this->_expunge($from_mbox, FALSE);
1384 $this->_clear_messagecount($from_mbox);
1385 $this->_clear_messagecount($to_mbox);
1386 }