-
Notifications
You must be signed in to change notification settings - Fork 0
/
db_fill.py
112 lines (110 loc) · 2.1 KB
/
db_fill.py
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
domains:[
name: 'dev.com',
transport: 'DB',
active: 1,
aliases: ['dev.co.uk', 'dev.net'],
signing:{
cert: 'path/to/cert',
additionalHeaders:[]
},
options:{
userLimit: 50,
sizeLimit: '1'
},
users:[{
name: 'test',
password: '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8',
sizeLimit: '50',
options:[],
groups: [2],
mailboxes: [1,2,3,4]
}],
groups:[{
_id: 1,
name: 'Test Group',
address: 'testgroup',
options:[]
}]
]
mailboxes:[
{
id: '1',
name: 'Inbox',
ancestry: [],
messages:[
{
id: '123',
flags: [] ,
tags: []
}
]
},
{
id: '2',
name: 'Trash',
ancestry: ['Inbox'],
messages:[
{
id: '456',
flags: [] ,
tags: []
}
]
},
{
id: '3',
name: 'Custom',
ancestry: ['Inbox'],
messages:[
{
id: '789',
flags: [] ,
tags: []
}
]
},
]
mail:[
{
_id: '123',
headers: [{
key: 'To',
value: 'Fred',
}],
rawHeaders: 'To: Fred',
body: [{
code: 'asdfasdfasdfasdfasd',
headers: '',
content: 'Hai'
}],
rawBody: ''
},
{
_id: '456',
headers: [{
key: 'To',
value: 'Bob',
}],
rawHeaders: 'To: Bob',
body: [{
code: 'asdfasdfasdfasdfasd',
headers: '',
content: 'Hai2'
}],
rawBody: ''
},
{
_id: '789' ,
headers: [{
key: 'To',
value: 'George',
}],
rawHeaders: 'To: George',
body: [{
code: 'asdfasdfasdfasdfasd',
headers: '',
content: 'Hai3'
}],
rawBody: ''
},
]