-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
80 changed files
with
3,579 additions
and
2,973 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
language: node_js | ||
node_js: | ||
- 0.8 | ||
- "0.10" | ||
- "0.11" | ||
- 0.12 | ||
- iojs | ||
|
||
before_script: | ||
- npm install -g grunt-cli | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,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:{ | ||
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 <[email protected]>\r\n"+ | ||
"To: Receiver name <[email protected]>\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" | ||
} | ||
"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 <[email protected]>\r\n" + | ||
"To: Receiver name <[email protected]>\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(){ | ||
server.listen(PORT, function() { | ||
console.log("Hoodiecrow listening on port %s", PORT) | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.