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

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 1 Mar 2011 15:22:01 +0100


Am 01.03.2011 um 14:47 schrieb Axel Dörfler:

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).


Good points, didn't think about the ShowImage or similar use-cases.

Ciao,
-Stephan



Other related posts: