-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalias2.txt
44 lines (32 loc) · 1.15 KB
/
alias2.txt
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
Aliases / Addresses
alias jim James <j@example.com> # tags:work
global Aliases - AliasList (TAILQ)
struct Alias { ... TagList ... } (STAILQ)
Aliasdlg: ~Y -> serialise tags (comma), then match
Email labels are cached in Mailbox.label_hash (X-Labels)
Email.tags (TagList)
Aliases -> ARRAY, for efficiency
TagList -> HashTable, ref count
Alias.tags -> ARRAY into HashTable
Completion - search and sort array
Search / Limit - find tag in HashTable, match ptr against arrays
will this fit into existing search methods?
ptr vs string?
Index search "~Y @name" -> NO
"~f @name" exists -> *from* alias name
need "~f ^name" (or !name) -> from matches any tagged alias
SLOW?
tie info into index-format-hook for conditional markers
"emoji" ∀ aliases!
50 aliases with tag "work", 1000 emails in Index
∀ alias hash of addresses, on demand, lower cased
what if "unalias"?
what if dupe address?
refcount too?
which lookups / lists are needed?
list of "aliases" for completion, sorted ARRAY?
list of tags for <create_alias> completion - sorted, refecount
sidebar too
hash of addresses for membership test
patterns for index to match *alias* tags!
search/color/limit