-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmenu.json
86 lines (86 loc) · 2.45 KB
/
menu.json
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
80
81
82
83
84
85
86
{
"items": [
{
"name": "MailPush",
"priority": 0,
"items": [
{
"name": "Fetch unread emails (past 2 days)",
"priority": 1,
"action": "./mailpush.sh python3 -u src/mailpush.py --mailbox INBOX --criteria UNSEEN --maxage 2 --maxnum 100 >log.txt 2>&1",
"param": ""
},
{
"name": "Fetch unread emails (past 30 days)",
"priority": 2,
"action": "./mailpush.sh python3 -u src/mailpush.py --mailbox INBOX --criteria UNSEEN --maxage 30 --maxnum 100 >log.txt 2>&1",
"param": ""
},
{
"name": "Fetch unread junk emails (past 2 days)",
"priority": 3,
"action": "./mailpush.sh python3 -u src/mailpush.py --mailbox JUNK --criteria UNSEEN --maxage 2 --maxnum 100 >log.txt 2>&1",
"param": ""
},
{
"name": "Fetch 1 newest email (re-download)",
"priority": 4,
"action": "./mailpush.sh python3 -u src/mailpush.py --mailbox INBOX --criteria ' ' --maxage 60 --maxnum 1 >log.txt 2>&1",
"param": ""
},
{
"name": "Fetch 3 newest emails (re-download)",
"priority": 5,
"action": "./mailpush.sh python3 -u src/mailpush.py --mailbox INBOX --criteria ' ' --maxage 60 --maxnum 3 >log.txt 2>&1",
"param": ""
},
{
"name": "Fetch 5 newest emails (re-download)",
"priority": 6,
"action": "./mailpush.sh python3 -u src/mailpush.py --mailbox INBOX --criteria ' ' --maxage 60 --maxnum 5 >log.txt 2>&1",
"param": ""
},
{
"name": "Fetch 1 newest junk email (re-download)",
"priority": 7,
"action": "./mailpush.sh python3 -u src/mailpush.py --mailbox JUNK --criteria ' ' --maxage 60 --maxnum 1 >log.txt 2>&1",
"param": ""
},
{
"name": "Fetch emails via config.json (custom)",
"priority": 8,
"action": "./mailpush.sh python3 -u src/mailpush.py >log.txt 2>&1",
"param": ""
},
{
"name": "View results",
"priority": 9,
"action": "./viewtxt.sh result*.txt",
"param": "",
"exitmenu": false
},
{
"name": "View log",
"priority": 10,
"action": "./viewtxt.sh log.txt",
"param": "",
"exitmenu": false
},
{
"name": "Kill process and exit",
"priority": 11,
"action": "ps aux | grep [m]ailpush | awk '{print $2}' | xargs -i kill {}",
"param": "",
"exitmenu": true
},
{
"name": "How to use",
"priority": 12,
"action": "./viewtxt.sh how_to_use.md",
"param": "",
"exitmenu": false
}
]
}
]
}