Opened 2 years ago
Closed 2 years ago
#1487949 closed Bugs (worksforme)
Unable to delete messages from Inbox after upgrading to 0.5.3
| Reported by: | nick.lock | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.6-beta |
| Component: | Core functionality | Version: | 0.5.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Previously installed version: r4116, Test Upgraded to: r4842
After upgrading per the instruction file, I am unable to delete a message from the inbox directly by pressing the "Move message to trash" button - receiving the "Could not move the message(s)" error. update.sh reports that the version of RC is up-to-date.
This appears to be related to the "preferences" field stored in "user" table of the MySQL database - as clicking through "Settings --> Special Folders --> Save" (without changing anything) rewrites the field, see below, and fixes the problem. Although this manual fix works, I cannot see a way to apply it in bulk to an existing database... ;)
Old preferences field (works correctly under r4116):
a:20:{s:17:"last_message_time";i:1306917500;s:8:"timezone";s:4:"auto";s:10:"dst_active";b:0;s:8:"pagesize";i:40;s:10:"prettydate";b:1;s:4:"skin";s:3:"exa";s:10:"htmleditor";i:0;s:14:"draft_autosave";i:300;s:8:"show_sig";i:1;s:12:"preview_pane";s:1:"1";s:16:"message_sort_col";s:4:"date";s:18:"message_sort_order";s:4:"DESC";s:9:"list_cols";a:6:{i:0;s:7:"subject";i:1;s:4:"from";i:2;s:4:"date";i:3;s:4:"size";i:4;s:4:"flag";i:5;s:10:"attachment";}s:11:"prefer_html";b:1;s:17:"flag_for_deletion";b:0;s:12:"logout_purge";b:1;s:10:"keep_alive";i:300;s:9:"junk_mbox";s:0:"";s:20:"default_imap_folders";a:4:{i:0;s:5:"INBOX";i:1;s:12:"INBOX.Drafts";i:2;s:10:"INBOX.Sent";i:3;s:11:"INBOX.Trash";}s:15:"namespace_fixed";b:1;}
Rewritten, working, preferences field:
a:23:{s:11:"drafts_mbox";s:12:"INBOX.Drafts";s:9:"sent_mbox";s:10:"INBOX.Sent";s:9:"junk_mbox";s:0:"";s:10:"trash_mbox";s:11:"INBOX.Trash";s:20:"default_imap_folders";a:4:{i:0;s:5:"INBOX";i:1;s:12:"INBOX.Drafts";i:2;s:10:"INBOX.Sent";i:3;s:11:"INBOX.Trash";}s:17:"last_message_time";i:1306917500;s:8:"timezone";s:4:"auto";s:10:"dst_active";b:0;s:8:"pagesize";i:40;s:10:"prettydate";b:1;s:4:"skin";s:3:"exa";s:10:"htmleditor";i:0;s:14:"draft_autosave";i:300;s:8:"show_sig";i:1;s:12:"preview_pane";s:1:"1";s:16:"message_sort_col";s:4:"date";s:18:"message_sort_order";s:4:"DESC";s:9:"list_cols";a:6:{i:0;s:7:"subject";i:1;s:4:"from";i:2;s:4:"date";i:3;s:4:"size";i:4;s:4:"flag";i:5;s:10:"attachment";}s:11:"prefer_html";b:1;s:17:"flag_for_deletion";b:0;s:12:"logout_purge";b:1;s:10:"keep_alive";i:300;s:15:"namespace_fixed";b:1;}
Attachments (2)
Change History (5)
comment:1 Changed 2 years ago by alec
Changed 2 years ago by nick.lock
Changed 2 years ago by nick.lock
comment:2 Changed 2 years ago by nick.lock
Hi Alec, thanks for the quick response.
main.inc.php has:
$rcmail_config['drafts_mbox'] = 'Drafts';
$rcmail_config['junk_mbox'] = 'Junk';
$rcmail_config['sent_mbox'] = 'Sent';
$rcmail_config['trash_mbox'] = 'Trash';
$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
$rcmail_config['create_default_folders'] = true;
I've attached the IMAP log file for the not working case, and also the working case for comparison.
comment:3 Changed 2 years ago by alec
- Resolution set to worksforme
- Status changed from new to closed
So, you're not using 0.5, but 0.6. As you see trash_mbox should be set to INBOX.Trash. It's explained in UPGRADE and config files.

What is the "trash_mbox" setting in main.inc.php file? Enable imap_debug and attach the log (from the moment when it's not working). I assume the trash_mbox wasn't configured properly.