[imp] old "Empty Trash" button behavior

Michael M Slusarz slusarz at horde.org
Wed Jan 30 17:43:40 UTC 2008


Quoting Liam Hoekenga <liamr at deathstar.org>:

> Back in 4.0.x, the "Empty Trash" icon would empty the trash, push a "the
> trash has been emptied" message into the notification stack, and then
> return you to the mailbox from which you invoked that action.
>
> I think starting in 4.1.x, it would leave you in the trash mailbox,
> showing you that it was empty.
>
> Can someone remind me as to why the behavior changed?   If I wanted to
> revert to the old behavior, do Horde generate urls still support a
> "return_url" value?

Because the Empty Trash icon is accessible outside of just mailbox  
screens - where do you redirect in this situation.  The behavior of  
the Empty Trash button *has* to be consistent no matter where you push  
it.

And it is way too complicated to try to determine the reload URL for  
the current view (certain views may only be obtainable via a POST/GET  
request, for example).  So we compromised on showing the Trash folder  
since, after all, that is where the activity is taking place.  And  
what happens if emptying the folder isn't successful?  It makes much  
more sense to be taken to the trash in this situation.

michael

-- 
___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the imp mailing list