|
@@ -5,15 +5,25 @@
|
5
|
5
|
shellfu import pretty
|
6
|
6
|
|
7
|
7
|
usage() {
|
8
|
|
- mkusage "newmail" \
|
9
|
|
- "rewind" \
|
10
|
|
- "cleanup" \
|
11
|
|
- "migrate" \
|
12
|
|
- -- "newmail - check for and file new mail" \
|
13
|
|
- "rewind - re-add messages from FILTER_FAIL back" \
|
14
|
|
- " to FILTER_QUEUE" \
|
15
|
|
- "cleanup - delete or archive old messages" \
|
16
|
|
- "migrate - move mail between mailboxes"
|
|
8
|
+ mkusage "[options] ACTION" \
|
|
9
|
+ -o \
|
|
10
|
+ "-c DIR change to DIR before doing anything" \
|
|
11
|
+ "-d turn on debugging mode" \
|
|
12
|
+ -- \
|
|
13
|
+ "imapdomo will try to read .imapdomo/host/HOSTNAME/init.lua and" \
|
|
14
|
+ ".imapdomo/host/HOSTNAME/handlers/ACTION.lua, where HOSTNAME is your" \
|
|
15
|
+ "short hostname (eg. 'foo' in 'foo.example.com')." \
|
|
16
|
+ "" \
|
|
17
|
+ "four valid actions are understood; since you must write handler for" \
|
|
18
|
+ "each action you want to use, the meanings below are purely a guide:" \
|
|
19
|
+ "" \
|
|
20
|
+ " newmail - check for and file new mail" \
|
|
21
|
+ " rewind - re-add messages from FILTER_FAIL back to FILTER_QUEUE" \
|
|
22
|
+ " cleanup - delete or archive old messages" \
|
|
23
|
+ " migrate - move mail between mailboxes" \
|
|
24
|
+ "" \
|
|
25
|
+ "See imapfilter_config(5)) for guide and API reference. Few functions"\
|
|
26
|
+ "are also available in .imapdomo/common.lua"
|
17
|
27
|
}
|
18
|
28
|
|
19
|
29
|
mkcmd() {
|