-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompress.txt
67 lines (52 loc) · 1.4 KB
/
compress.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Compressed files
working?
add to empty box
add to "add-only" box
set each combination of hooks
limitations -- filenames
document %f %t need to be quoted
limit filenames
can't contain quotes
'' can't contain '
"" can't contain "
need code to escape filenames
would need to be done in an OS-dependent way
hooks should be considered first, then default mutt behaviour
need test-hook i.e. "is this an xz-compressed" file?
mailbox type should be per-hook-set
features
example of tar.gz of maildir mailbox?
compress won't be able to tidy up
unless...
compress creates a dir
extracts to that dir
deletes entire dir on close
change hook placeholders to be more descriptive?
%t -> (T)emp file
%p -> (P)laintext file
%c -> (C)ompressed file
docs: mention screen flicker during updates
=> system commands
tidy open() error paths -- need to delete /tmp files
don't mess with atime of tmp file
compress only opens one file at a time
should cache decompressed files?
security? create/delete use close?
no can't recompress after
CTX -> COMPRESS -> REAL
size size
hdrs hdrs
ops ops
data -> data ->
hooks (fp)
msg_count msg_count
msg_unread msg_unread
msg_flagged msg_flagged
which 'size' is relevant? INSIDE
ptrs could redirects
nums can't
compress
does it really need: `bool locked`
or is the `FILE*` enough?
convert compress to use ACL ... can DELETE?
add native compress support