Author Topic: Unable to delete old mail  (Read 3787 times)

Offline billstif

  • Jr. Member
  • **
  • Posts: 37
Unable to delete old mail
« on: October 06, 2011, 09:10:47 AM »
Since updating to .6, I have been unable to delete old mail.  Whenever I try to delete a message by clicking on the Delete Message icon, I get the following error message:

         Server Error: UID COPY: Unknown namespace.

Anyone else having the same problem or have any idea what to do to fix this?

I have discovered that I can delete messages by dragging them to the Trash folder.
« Last Edit: October 06, 2011, 09:14:58 AM by billstif »

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,850
Unable to delete old mail
« Reply #1 on: October 06, 2011, 10:14:22 AM »
sounds like may be you have set your delete folder up wrong. goto your settings page and then "special folder" and set the one for your deleted folder and then try again
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline billstif

  • Jr. Member
  • **
  • Posts: 37
Unable to delete old mail
« Reply #2 on: October 06, 2011, 09:52:38 PM »
Everything appears correct on the Special Folders page under Settings.  The problem occurred after I upgraded Roundcube to .6.

Offline kidboy

  • Newbie
  • *
  • Posts: 3
Unable to delete old mail
« Reply #3 on: October 07, 2011, 04:37:38 PM »
I have the same problem, for every email i try delete, i recive error UID from IMAP.

Offline Nepherim

  • Jr. Member
  • **
  • Posts: 12
Unable to delete old mail
« Reply #4 on: October 09, 2011, 07:15:08 PM »
Same issue after upgrading to .6. This functionality worked before the upgrade. Not using imap. Using default folder settings from main.inc.php.dist.

A quick fix for a single user is:
 - login
 - goto "Settings" (top right)
 - goto "Special Folders" (left side)
 - goto "Folders" (tab on top)
 - make sure all folders have a checkmark next to them

Anyone know how to affect this change for all users?
~ ~ Dave

tech | photography | journal | MR2

Offline billstif

  • Jr. Member
  • **
  • Posts: 37
Unable to delete old mail
« Reply #5 on: October 14, 2011, 11:11:56 AM »
Per Nepherim and John Doh's suggestions, I checked to make sure all the folders were set and checked.  I even unchecked them and rechecked them.  I still cannot delete mail although I can drag mail to the Trash folder.   Any other ideas on how to fix this?

I was able to get things working by resetting all of the files in the Special Folders, removing all settings and then going back and re-setting them.
« Last Edit: October 14, 2011, 11:15:09 AM by billstif »

Offline Nepherim

  • Jr. Member
  • **
  • Posts: 12
Unable to delete old mail
« Reply #6 on: October 15, 2011, 01:24:31 PM »
Further testing lead me to have to change the settings to the IMAP standard, despite the fact that I'm not using IMAP. Thus, my settings are now:
Code: [Select]

// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
$rcmail_config['drafts_mbox'] = 'INBOX.Drafts';

// store spam messages in this mailbox
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
$rcmail_config['junk_mbox'] = 'INBOX.Junk';

// store sent message is this mailbox
// leave blank if sent messages should not be stored
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
$rcmail_config['sent_mbox'] = 'INBOX.Sent';

// move messages to this folder when deleting them
// leave blank if they should be deleted directly
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
$rcmail_config['trash_mbox'] = 'INBOX.Trash';

// display these folders separately in the mailbox list.
// these folders will also be displayed with localized names
// NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
$rcmail_config['default_imap_folders'] = array('INBOX', 'INBOX.Drafts', 'INBOX.Sent', 'INBOX.Junk', 'INBOX.Trash');

This appears to work correctly.

I'd still like to know how to get the check-box settings applied to all users, without having them go in manually and changing them. Anyone?
~ ~ Dave

tech | photography | journal | MR2

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Unable to delete old mail
« Reply #7 on: October 16, 2011, 08:58:16 AM »
Unfortunately there is no mass-editing feature.

You have to code your own script:

- Loop over database table _users_
- Unserialize _preferences_ field
- Modify, serialize and write the stuff back to the database

If you don't care about loosing contacts and identites (and maybe plugin settings) you could truncate _user_ table.
« Last Edit: October 16, 2011, 08:59:22 AM by rosali »
Regards,
Rosali
__________________
MyRoundcube Project (commercial)