Package: imp4
Version: 4.1.3-1
Severity: important
Tags: patch

The "Hide deleted messages" preference doesn't seem to work when the trash 
folder usage is activated.

I set up the following preference in /etc/horde/imp4/prefs.php:

$_prefs['delhide'] = array(
    'value' => 1,
    'locked' => false,
    'shared' => false,
    'type' => 'implicit');

but imp4 still displays deleted message.

Looking at the code, it seems the delhide works only if use_trash is disabled 
(!!)
Shouldn't it be the opposite behaviour ?

I applied the following patch to solve my problem:

--- Mailbox.php 2006-09-03 12:51:59.000000000 +0200
+++ Mailbox.php.new     2007-01-13 13:41:03.000000000 +0100
@@ -171,7 +171,7 @@
             $this->_delhide = !$GLOBALS['imp_search']->isVTrashFolder();
         } else {
             $this->_delhide = ($GLOBALS['prefs']->getValue('delhide') &&
-                               !$GLOBALS['prefs']->getValue('use_trash') &&
+                               $GLOBALS['prefs']->getValue('use_trash') &&
                                ($GLOBALS['imp_search']->isSearchMbox() ||
                                ($GLOBALS['prefs']->getValue('sortby') != 
SORTTHREAD)));
         }



-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-vserver-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages imp4 depends on:
ii  horde3                        3.1.3-2    horde web application framework
ii  php4-imap                     6:4.4.4-8  IMAP module for php4

Versions of packages imp4 recommends:
ii  locales                      2.3.6.ds1-8 GNU C Library: National Language (

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to