RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Release Support > Older Versions > Release Candidate 1

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 09-06-2007, 05:31 PM
Registered User
 
Join Date: Sep 2007
Posts: 2
Downloads: 0
Uploads: 0
Default Deleting items when moving messages.

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.

Code:
// 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 09-17-2007, 06:22 PM
Registered User
 
Join Date: Sep 2007
Posts: 2
Downloads: 0
Uploads: 0
Default Re: Deleting items when moving messages.

I think i may have found it, commented out line 1383 and seems to work now.

"program/include/rcube_imap.inc"
Code:
  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    }
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 05:04 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community