Koozali.org: home of the SME Server

Legend in IMP 3.1

Peter

Legend in IMP 3.1
« on: September 10, 2002, 05:39:02 PM »
I have a question about IMP.

I recently upgraded IMP on my SME 5.5 box to version 3.1-2. In older versions of IMP the mailbox view showed a legend for the colors that are used to mark read, forwarded, new and deleted messages. There was also a checkbox under the options menu to turn this feature on/off. Since I upgraded IMP this feature is gone.

Is it possible to restore this feature in IMP 3.1-2?

Regards,

Peter

Dan Brown

Re: Legend in IMP 3.1
« Reply #1 on: September 10, 2002, 05:57:38 PM »
Hmmm...  I'm running IMP 3.1-2 on an SME 5.1.2 box, and I have the legend.  Interesting...

Peter

Re: Legend in IMP 3.1
« Reply #2 on: September 10, 2002, 06:56:27 PM »
I just checked out another SME box (5.1.2) with IMP 3.0. This one does show a legend in the mailbox view however it doesn't show a checkbox under options. I However I do remeber that there should be a checkbox in 'Display options'.

Dan Brown

Re: Legend in IMP 3.1
« Reply #3 on: September 10, 2002, 07:37:34 PM »
FWIW, I have that checkbox under the "display options" screen.

Nate

Re: Legend in IMP 3.1
« Reply #4 on: September 10, 2002, 09:03:09 PM »
Check the /home/httpd/html/horde/imp/config/prefs.php file  It should say:

// show mailbox legend?
// a value of 0 =no, 1 = yes
$_prefs['show_legend'] = array(
    'value' => 1,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show legend in the mailbox view.")
);


It sounds like yours says

// show mailbox legend?
// a value of 0 =no, 1 = yes
$_prefs['show_legend'] = array(
    'value' => 0,
    'locked' => true,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show legend in the mailbox view.")
);

When locked the option to change it disappears in 'display options'.
I use the locked on a few items to control the system a bit(like purging the trash folder monthly)

Peter

Re: Legend in IMP 3.1
« Reply #5 on: September 11, 2002, 12:16:11 AM »
The section as Nate describes doesn't exist in my prefs.php. Which template do I need to expand to add this section?

Peter

Re: Legend in IMP 3.1
« Reply #6 on: September 11, 2002, 01:02:59 AM »
Guys,

I don't know if I have done this right but it works. I've added a new template in  '/etc/e-smith/templates/home/httpd/html/horde/imp/config' called 480legend

I did this because the legend section as shown below did not exist in my prefs.php or in any original template.

// show mailbox legend?
// a value of 0 =no, 1 = yes
$_prefs['show_legend'] = array(
    'value' => 1,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show legend in the mailbox view.")

Then I added 'show_legend' in the original 180display template located in '/etc/e-smith/templates/home/httpd/html/horde/imp/config' at the line 'members' as shown below. This item was also missing

$prefGroups['display'] = array(
    'column' => _("Other Options"),
    'label' => _("Display Options"),
    'desc' => _("Change display options such as how many messages you see on each page and how messages are sorted."),
    'members' => array('sortby', 'sortdir', 'max_msgs', 'num_words',
                       'nav_expanded', 'show_legend')

Finally I expanded the templates: /sbin/e-smith/expand-template /home/httpd/html/horde/imp/config/prefs.php

It works now, but have I done this right?

Regards,

Peter

Nate

Re: Legend in IMP 3.1
« Reply #7 on: September 11, 2002, 01:21:32 AM »
As long as you did this by modifying the templates, and when you expanded them it works, then yes I'd say you should be ok.  How did you go about upgrading to IMP 3.1?  I'm curious because that section should be in the prefs.php file by default.  Not that it matters, since you have it working now.