diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2020-07-17 14:14:56 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2020-07-17 14:14:56 +0200 |
| commit | e5916afc8dec89d402c35a179aea485f8835303a (patch) | |
| tree | 221fc9bc97fbb0c4b8a45a4ab704e53bca64e9f8 | |
| parent | 474f7a32ad50bdbae77a72436db0bb61aa0cf805 (diff) | |
| download | dotfiles-e5916afc8dec89d402c35a179aea485f8835303a.tar.gz dotfiles-e5916afc8dec89d402c35a179aea485f8835303a.zip | |
[lumail] sort by date instead of threads and only show new messages by default
| -rw-r--r-- | config/lumail/lumail.lua | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/config/lumail/lumail.lua b/config/lumail/lumail.lua index 757fc9c..f176935 100644 --- a/config/lumail/lumail.lua +++ b/config/lumail/lumail.lua @@ -114,6 +114,16 @@ Config:set ( "log.level", "") -- Config:set( "index.format", "[${4|flags}] ${2|message_flags} | ${10|date} | ${20|sender} | ${indent}${subject}" ) + +-- Override Message:to_ctime to use the lua header cache + +do + local old_ctime = Message.ctime + function Message:ctime() + return self.header("Delivery-Date") or self.header("Date") or old_ctime(self) + end +end + -- -- Options include: -- @@ -137,10 +147,17 @@ Config:set( "index.format", -- `subject` - Sort by subject. -- `from` - Sort by sender. -- -sorting_method( "threads" ) +sorting_method( "date" ) +-- sorting_method( "threads" ) Config:set("threads.sort", "date") + +-- +-- Only show unread messages by default +-- +Config:set( "index.limit", "new" ) + -- -- Unread messages/maildirs are drawn in red. -- |
