* [PATCH] mbox: sort messages by ascending date
@ 2016-05-06 1:19 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2016-05-06 1:19 UTC (permalink / raw)
To: meta
This allows messages to be read in chronological order when
read without a mail client (e.g. with "zcat t.mbox.gz | less")
---
lib/PublicInbox/Mbox.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm
index ffa6fa4..b81ec0a 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);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-06 1:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-06 1:19 [PATCH] mbox: sort messages by ascending date Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).