aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-10-20 16:43:41 +0200
committerRobin Jarry <robin@jarry.cc>2022-10-27 22:44:39 +0200
commitc5face0b6f922781f1d2ae754c00fdee6c58af20 (patch)
tree13fd5d1026319f36921be6776b13ae87c68f16ec /config
parentc83ffabf3853e5f06294bba78dc23bc7ff84b0af (diff)
downloadaerc-c5face0b6f922781f1d2ae754c00fdee6c58af20.tar.gz
store: reverse message list order with iterators
Reverse the order of the messages in the message list. The complexity of reversing the order is abstracted away by the iterators. To reverse the message list, add the following to your aerc.conf: [ui] reverse-msglist-order=true Thanks to |cos| for sharing his initial implementation of reversing the order in the message list [0]. [0]: https://git.netizen.se/aerc/commit/?h=topic/asc_sort_imap Signed-off-by: Koni Marti <koni.marti@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config')
-rw-r--r--config/aerc.conf9
-rw-r--r--config/config.go2
2 files changed, 11 insertions, 0 deletions
diff --git a/config/aerc.conf b/config/aerc.conf
index 384a0db3..1650cf1d 100644
--- a/config/aerc.conf
+++ b/config/aerc.conf
@@ -184,6 +184,15 @@ completion-popovers=true
#icon-signed-encrypted=✔
#icon-unknown=✘
#icon-invalid=⚠
+#
+
+# Reverses the order of the message list. By default, the message list is
+# ordered with the newest (highest UID) message on top. Reversing the order
+# will put the oldest (lowest UID) message on top. This can be useful in cases
+# where the backend does not support sorting.
+#
+# Default: false
+#reverse-msglist-order = false
#[ui:account=foo]
#
diff --git a/config/config.go b/config/config.go
index 8b8d9d21..8eb40070 100644
--- a/config/config.go
+++ b/config/config.go
@@ -78,6 +78,8 @@ type UIConfig struct {
// customize border appearance
BorderCharVertical rune `ini:"-"`
BorderCharHorizontal rune `ini:"-"`
+
+ ReverseOrder bool `ini:"reverse-msglist-order"`
}
type ContextType int