summary refs log tree commit diff stats
path: root/models/models.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-02-15 14:14:43 +0100
committerDrew DeVault <sir@cmpwn.com>2020-02-16 10:41:16 -0500
commit66b68f35b3f3f3b97ec9951397fd75afeb0d0995 (patch)
tree126a15cbae36f3e4794668b80b26e85c42f02631 /models/models.go
parentbd4df530095ee343778a59120a9e641c01010b0f (diff)
downloadaerc-66b68f35b3f3f3b97ec9951397fd75afeb0d0995.tar.gz
dirlist: actually honor the DirInfo
Currently the dirlist ignores the counts provided by the dirInfo.
However some of the workers can actually provide accurate counts much quicker
than if we count the flags.

Eventually we will also want to enable displaying counts for background folders,
where the brute force counting won't work as none of the headers are fetched yet.

This commit models it in an opt-in manner, if the flag isn't set then we still
count the messages manually.
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go
index 8d254a1..7654cf0 100644
--- a/models/models.go
+++ b/models/models.go
@@ -50,6 +50,9 @@ type DirectoryInfo struct {
 
 	// The number of unread messages
 	Unseen int
+
+	// set to true if the value counts are accurate
+	AccurateCounts bool
 }
 
 // A MessageInfo holds information about the structure of a message
:18 +0200 initial import' href='/acidbong/suckless/dwm/commit/Makefile?h=5.7.2&id=1076f2b6b3d3751d5d5db6fcb9ac8c247e04e893'>1076f2b
5d3fd37 ^

a2d56f6 ^
99b126d ^

1076f2b
650a1fb ^
1076f2b
8b59083 ^
1076f2b

4d55eee ^
db876f9 ^
dbf7e03 ^

4d55eee ^






dbf7e03 ^

4d55eee ^
dbf7e03 ^
4d55eee ^


dbf7e03 ^
4d55eee ^

dbf7e03 ^

4d55eee ^



dc5c070 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61