[haiku-commits] Re: r40747 - haiku/trunk/src/apps/mail

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 01 Mar 2011 14:47:31 +0100

Stephan Aßmus <superstippi@xxxxxx> wrote:
> >> BTW, is it possible to get information about the current sorting
> > > of
> >> the Tracker window? I have usually set up the sorting by date, but
> >> in reverse order, i.e. newest mails on top. I can't get to the
> >> "logical" next mail via Mail, unless I press the "previous mail"
> >> button. :-)
> > good point, but as far as I can see from http://haiku.it.su.se:
> > 8180/source/xref/src/kits/tracker/PoseViewScripting.cpp
> >  there is no support for this at the moment...
> If Mail just sends commands like "Next" or "Previous" pose, it could
> be fixed in Tracker, but I have no idea how it works behind the scene.

Before anyone does changes like this: I am not sure it's really a good
idea. How could Tracker know that the reverse sorting order also means
that the Next/Previous logic should be reversed? That might be
convenient for Mail, but it would be pretty confusing for any other
piece of software, like ShowImage.

Therefore, I would just extend the scripting feature, and use that
extra information within Mail to decide what to do (ie. if a reversed
"MAIL:when" or "Modified time" is part of the sort order, reverse the
logic of next/previous).

Bye,
   Axel.


Other related posts: