rev 1477 - in trunk/mariachi: . lib

[prev] [thread] [next] [lurker] [Date index for 2003/11/27]

From: jerakeen
Subject: rev 1477 - in trunk/mariachi: . lib
Date: 16:37 on 27 Nov 2003
Author: jerakeen
Date: 2003-11-27 16:37:27 +0000 (Thu, 27 Nov 2003)
New Revision: 1477

Modified:
   trunk/mariachi/lib/Mariachi.pm
   trunk/mariachi/mariachi
Log:
Add ability to reverse threads, so they are in chronological order.



Modified: trunk/mariachi/lib/Mariachi.pm
===================================================================
--- trunk/mariachi/lib/Mariachi.pm	2003-11-27 16:37:16 UTC (rev 1476)
+++ trunk/mariachi/lib/Mariachi.pm	2003-11-27 16:37:27 UTC (rev 1477)
@@ -208,6 +208,11 @@
     @rootset = sort {
         $b->topmost->message->epoch_date <=> $a->topmost->message->epoch_date
     } @rootset;
+    
+    # And optionally reverse the order
+    @rootset = reverse(@rootset)
+      if $self->config->reverse;
+
     $self->rootset( \@rootset );
 }
 

Modified: trunk/mariachi/mariachi
===================================================================
--- trunk/mariachi/mariachi	2003-11-27 16:37:16 UTC (rev 1476)
+++ trunk/mariachi/mariachi	2003-11-27 16:37:27 UTC (rev 1477)
@@ -118,6 +118,22 @@
    });
 
 
+=head2 -v --reverse
+
+By default, mariachi renders the most recent messages on the forst page of
+the archive, and later messages later on in the archive. This flag reverses
+this behaviour, placing the earliest messages on the first page of the
+archive. 
+
+=cut
+
+$config->define("reverse", {
+    ALIAS    => 'v',
+    DEFAULT  => 0,
+    ARGCOUNT => ARGCOUNT_NONE
+   });
+
+
 =head2 --nolurker
 
 Disable lurker output

Generated at 13:57 on 01 Jul 2004 by mariachi 0.52