about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-05-06 01:15:31 +0000
committerEric Wong <e@80x24.org>2016-05-06 01:19:01 +0000
commitc549ac50c2e7be9345decb170374485d8b1fc04c (patch)
tree46b20c648110e8cb9a237d5e234ad92f6e9c4836 /lib/PublicInbox
parenteeaaab920c532c8789d586d4efa105b15505bbaf (diff)
downloadpublic-inbox-c549ac50c2e7be9345decb170374485d8b1fc04c.tar.gz
This allows messages to be read in chronological order when
read without a mail client (e.g. with "zcat t.mbox.gz | less")
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/Mbox.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm
index ffa6fa47..b81ec0a4 100644
--- a/lib/PublicInbox/Mbox.pm
+++ b/lib/PublicInbox/Mbox.pm
@@ -97,7 +97,7 @@ sub emit_mbox {
         require PublicInbox::Git;
         my $mid = $ctx->{mid};
         my $git = $ctx->{git} ||= PublicInbox::Git->new($ctx->{git_dir});
-        my %opts = (offset => 0);
+        my %opts = (offset => 0, asc => 1);
         my $nr;
         do {
                 my $res = $srch->get_thread($mid, \%opts);