Opened 5 years ago

Closed 5 years ago

#1485546 closed Bugs (invalid)

special folders with non-default names are treated like ordianry folders

Reported by: hayalci Owned by:
Priority: 5 Milestone: 0.2-stable
Component: User Interface Version: 0.2-beta
Severity: minor Keywords:
Cc:

Description

I have the following settings in my config file, but "spam" folder does not have the "folder-junk.png" icon, and I can unsubscribe from 'spam' box.

$rcmail_config['junk_mbox'] = 'spam';
$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'spam', 'Trash' );
$rcmail_config['protect_default_folders'] = TRUE;

In program/include/main.inc the function rcmail_folder_classname seems to set the folder class using config file, but this is what I get in final output. If class was "mailbox junk even" the icon would be displayed correctly.

<li id="rcmlispam" class="mailbox spam even"><a href="./?_task=mail&amp;_mbox=spam" onclick="return rcmail.command('list','spam',this)">spam</a></li>

Change History (3)

comment:1 Changed 5 years ago by alec

I feel it was fixed in trunk some time ago, please check it out.

comment:2 Changed 5 years ago by hayalci

While using svn version with the user record below, the problem was present.

10|dummy|localhost|dummy@domain.tld|2008-07-22 18:57:51|2008-11-21 15:27:31|en_US|a:6:{s:10:"dst_active";b:0;s:10:"keep_alive";i:60;s:9:"junk_mbox";s:0:"";s:20:"default_imap_folders";a:4:{i:0;s:5:"INBOX";i:1;s:6:"Drafts";i:2;s:4:"Sent";i:3;s:5:"Trash";}s:16:"message_sort_col";s:4:"date";s:18:"message_sort_order";s:4:"DESC";}

I manually added "Trash";i:4;s:3:"Spam";} to the preferences field and Junk/Spam? mailbox got correct icon. (I have set Junk folder's name as 'Spam' in config). Here is the fixed version.

10|dummy|localhost|dummy@domain.tld|2008-07-22 18:57:51|2008-11-21 15:27:31|en_US|a:6:{s:10:"dst_active";b:0;s:10:"keep_alive";i:60;s:9:"junk_mbox";s:0:"";s:20:"default_imap_folders";a:4:{i:0;s:5:"INBOX";i:1;s:6:"Drafts";i:2;s:4:"Sent";i:3;s:5:"Trash";i:4;s:3:"Spam";}s:16:"message_sort_col";s:4:"date";s:18:"message_sort_order";s:4:"DESC";}

Another account, which does not have the icon problem, is as follows. It has no folder name in preferences.

12|gokdeniz|localhost|gokdeniz@domain.tld|2008-07-23 11:11:34|2008-11-21 15:22:22|tr_TR|a:2:{s:16:"message_sort_col";s:4:"date";s:18:"message_sort_order";s:4:"DESC";}

This is a minor bug but a possible fix is to remove folder names from preferences ? Or add the folders in rcmail_config's 'default_imap_folders' to the preferences field if one or more folders are missing from there.

comment:3 Changed 5 years ago by alec

  • Resolution set to invalid
  • Status changed from new to closed

I think you're wrong. The problem is with empty junk_mbox in preferences. This is causing icon issue. Also you have "spam" in config, not "Spam", folder names are case sensitive - it's subscription issue.

Note: See TracTickets for help on using tickets.