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

Marc Fellman marc.fellman at gmail.com
Tue Mar 21 04:10:07 PST 2006


2006/3/21, Graeme Wood <Graeme.Wood at ed.ac.uk>:
>
> On Tue, 21 Mar 2006, Marc Fellman wrote:
>
> > 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).
>
> They don't disappear for me. If I have deleted messages then I will always
> have links there provided it isn't a virtual folder.
>
> > 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?).
>
> If you don't have deleted messages then you won't have the links. How
> would you detect deleted messages that don't exist?  As soon as you delete
> a message, the links should appear.

Well, thats what I tried to tell. I have the links allthough there are
no delted messages (I purged them before).


Well for now to be continued.
>
>
> > 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
> >
>
> --
> =============================================================================
> Graeme Wood                                 Email: Graeme.Wood at ed.ac.uk
> Unix Systems Support                        Phone: +44 131 650 5003
> The University of Edinburgh                 Fax:   +44 131 650 6552
> =============================================================================
>


--
Met Vriendelijke Groet / With Kind Regards

Marc Fellman


More information about the imp mailing list