[imp] link to show/hide deleted messages (patch 2)

Marc Fellman marc.fellman at gmail.com
Tue Mar 21 03:43:07 PST 2006


Little update....

If I have the hide deleted messages option, then the show and purge
links are shown. If I click on the show deleted messages the links
disappear (offcourse).

So it seems to need some work if you want to have deleted messages
hidden and don't have any deleted messages (how should those be
detected?).

Marc

2006/3/21, Marc Fellman <marc.fellman at gmail.com>:
> Hi Graeme,
>
> Thanks we are getting somewhere.
>
> 2006/3/21, Graeme Wood <Graeme.Wood at ed.ac.uk>:
> > Oops I should cut and paste better...
> >
> > function showDeleteLinks()
> > {
> >    if (!$GLOBALS['prefs']->getValue('use_trash') &&
> >        !$GLOBALS['prefs']->getValue('use_vtrash') &&
> >        is_null($GLOBALS['imp_search']->isVINBOXFolder())) {
> >        $ret_array = array('purge' => true);
> >        $ret_array['hide'] = ($this->sortby() != SORTTHREAD);
> >    } elseif ($this->_showdelete || $GLOBALS['prefs']->getValue('delhide')) {
> >        $ret_array = array('hide' => true, 'purge' => true);
> >    } else {
> >        $ret_array = array('hide' => false, 'purge' => false);
> >    }
> > }
> >
>
> The only thing that remains now (and it seems to be some caching or
> so) is that after the purge I still have the show/hide and purg links.
> If I refresh the screen (by clicking on E-mail in the Horde menu) the
> links disapear. For now I'm happy with this but there is still a
> little thing.....
>
> But Don't worry, be happy (is running on my MP3 player right now!)
>
> <SNIP>
> --
> Met Vriendelijke Groet / With Kind Regards
>
> Marc Fellman
>


--
Met Vriendelijke Groet / With Kind Regards

Marc Fellman


More information about the imp mailing list