[imp] ingo: setting filter_seen doesn't work (1.0.1)

Demetrios J Tsillas jtsillas at appledor.net
Tue Apr 19 08:42:34 PDT 2005


I am attempting to set (in prefs.php):

// Only filter [un]seen messages?
// Values: 0, INGO_STORAGE_FILTER_UNSEEN, INGO_STORAGE_FILTER_SEEN
$_prefs['filter_seen'] = array(
    'value' => INGO_STORAGE_FILTER_UNSEEN,
    'locked' => false,
    'shared' => false,
    'type' => 'implicit'
);

This should filter only unseen messages. The code which
makes this feature work is in lib/Script/imap.php:

                    if ($seen_flag == INGO_SCRIPT_FILTER_UNSEEN) {
                        $ob->seen(false);
                    } elseif ($seen_flag == INGO_SCRIPT_FILTER_SEEN) {
                        $ob->seen(true);
                    }

$seen_flag is copied from the prefs.

This doesn't seem to be working. But if I manually call $ob->seen(false):

                    if ($seen_flag == INGO_SCRIPT_FILTER_UNSEEN) {
                        $ob->seen(false);
                    } elseif ($seen_flag == INGO_SCRIPT_FILTER_SEEN) {
                        $ob->seen(true);
                    }
/* */               $ob->seen(false);

it works as expected.





More information about the imp mailing list