-
Notifications
You must be signed in to change notification settings - Fork 27
/
complete.js
72 lines (69 loc) · 2.63 KB
/
complete.js
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
var hoodiecrow = require("../lib/server"),
server = hoodiecrow({
plugins: ["ID", "STARTTLS" /*, "LOGINDISABLED"*/ , "SASL-IR", "AUTH-PLAIN", "NAMESPACE", "IDLE", "ENABLE", "CONDSTORE", "XTOYBIRD", "LITERALPLUS", "UNSELECT", "SPECIAL-USE", "CREATE-SPECIAL-USE"],
id: {
name: "hoodiecrow",
version: "0.1"
},
storage: {
"INBOX": {
messages: [{
raw: "Subject: hello 1\r\n\r\nWorld 1!",
internaldate: "14-Sep-2013 21:22:28 -0300"
}, {
raw: "Subject: hello 2\r\n\r\nWorld 2!",
flags: ["\\Seen"]
}, {
raw: "Subject: hello 3\r\n\r\nWorld 3!"
}, {
raw: "From: sender name <sender@example.com>\r\n" +
"To: Receiver name <receiver@example.com>\r\n" +
"Subject: hello 4\r\n" +
"Message-Id: <abcde>\r\n" +
"Date: Fri, 13 Sep 2013 15:01:00 +0300\r\n" +
"\r\n" +
"World 4!"
}, {
raw: "Subject: hello 5\r\n\r\nWorld 5!"
}, {
raw: "Subject: hello 6\r\n\r\nWorld 6!"
}]
},
"": {
"separator": "/",
"folders": {
"[Gmail]": {
"flags": ["\\Noselect"],
"folders": {
"All Mail": {
"special-use": "\\All"
},
"Drafts": {
"special-use": "\\Drafts"
},
"Important": {
"special-use": "\\Important"
},
"Sent Mail": {
"special-use": "\\Sent"
},
"Spam": {
"special-use": "\\Junk"
},
"Starred": {
"special-use": "\\Flagged"
},
"Trash": {
"special-use": "\\Trash"
}
}
}
}
}
},
debug: true
});
const PORT = 1143;
server.listen(PORT, function() {
console.log("Hoodiecrow listening on port %s", PORT)
});