about summary refs log blame commit diff stats
path: root/widgets/common.go
blob: f77f891cfe024b73547e0f9359ec759ba152cf11 (plain) (tree)
1
2
3
4
5
6
7




               

                                       












                                                                                             
package widgets

import (
	"fmt"

	"git.sr.ht/~rjarry/aerc/lib"
	"git.sr.ht/~rjarry/aerc/models"
)

func msgInfoFromUids(store *lib.MessageStore, uids []uint32) ([]*models.MessageInfo, error) {
	infos := make([]*models.MessageInfo, len(uids))
	for i, uid := range uids {
		var ok bool
		infos[i], ok = store.Messages[uid]
		if !ok {
			return nil, fmt.Errorf("uid not found")
		}
	}
	return infos, nil
}
.com> 2014-11-18 00:10:44 +0000 committer James Booth <boothj5@gmail.com> 2014-11-18 00:10:44 +0000 Added original_bright theme' href='/danisanti/profani-tty/commit/themes/original_bright?id=fa3c6779a0cb89b96513206f11b2a5e595f4b8d7'>fa3c6779 ^
fa3c6779 ^
fbc30231 ^

















cd2458c0 ^

0ae975c2 ^

fa3c6779 ^
b21edfaa ^
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79