remove gmail proxy test directory

This commit is contained in:
Tankred Hase 2013-08-16 20:52:44 +02:00
parent 553320adc8
commit 66e0d5341b
8 changed files with 0 additions and 151 deletions

View File

@ -1 +0,0 @@
foo.js

View File

@ -1,10 +0,0 @@
'use strict';
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('foo.html', {
'bounds': {
'width': 1024,
'height': 650
}
});
});

View File

@ -1,24 +0,0 @@
'use strict';
var browserify = require('browserify'),
fs = require('fs'),
path = require('path');
var b = browserify('./imap-client.js');
b.require('net-chromeify', {
expose: 'net'
});
b.require('tls-chromeify', {
expose: 'tls'
});
b.bundle(function(err, src) {
if (err) {
throw err;
}
var file = path.join(__dirname + '/foo.js');
fs.writeFileSync(file, src);
console.log('bundle written to: ' + file);
});

View File

@ -1,16 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The Scripts -->
<script src="lib/forge.min.js"></script>
<script src="foo.js"></script>
</head>
<body>
</body>
</html>

View File

@ -1,61 +0,0 @@
'use strict';
var inbox = require('inbox');
var client = inbox.createConnection(false, "imap.gmail.com", {
secureConnection: true,
// auth: {
// XOAuth2: {
// user: "safewithme.testuser@gmail.com",
// clientId: "440907777130.apps.googleusercontent.com",
// accessToken: "ya29.AHES6ZTVj9_kCdP8zEYCA9OZ6fvTqT_TmCe4UsmYPF3ffYM8eGHX2uw"
// }
// }
auth: {
user: "safewithme.testuser@gmail.com",
pass: "hellosafe"
}
// auth: {
// user: 'whiteout.test@t-online.de',
// pass: '@6IyFg1SIlWH91Co' // 'R2nUXJlh9JKV3ZEp1#jH'
// }
});
console.log("Connecting to server...");
client.connect();
client.on("connect", function() {
console.log("Connected!");
client.openMailbox("INBOX", function(error, mailbox) {
if (error) throw error;
// List newest 10 messages
client.listMessages(-1, function(err, messages) {
console.log("Listing messages server...");
messages.forEach(function(message) {
console.log(message.UID);
var msgStream = client.createMessageStream(message.UID);
msgStream.on('data', function(chunk) {
console.log(chunk.toString('utf8'));
})
msgStream.on('end', function() {
console.log('\n\nthere will be no more data.');
});
});
client.close();
});
});
});
client.on('error', function(err) {
console.log('Error');
console.log(err)
});
client.on('close', function() {
console.log('DISCONNECTED!');
});

File diff suppressed because one or more lines are too long

View File

@ -1,15 +0,0 @@
{
"name": "IMAP Test",
"description": "Testing chrome.socket for IMAP",
"version": "0.0.1",
"manifest_version": 2,
"offline_enabled": true,
"permissions": [{
"socket": ["tcp-connect"]
}],
"app": {
"background": {
"scripts": ["background.js"]
}
}
}

View File

@ -1,23 +0,0 @@
{
"name": "gmail-test-proxy",
"version": "0.0.1",
"engines": {
"node": ">=0.8"
},
"scripts": {
"test": "grunt test && test/test.sh"
},
"dependencies": {
"net-chromeify": "https://github.com/whiteout-io/net-chromeify/tarball/rewrite",
"tls-chromeify": "https://github.com/whiteout-io/tls-chromeify/tarball/master",
"inbox": "https://github.com/whiteout-io/inbox/tarball/iconv-lite",
"nodemailer": "~0.4.3"
},
"devDependencies": {
"browserify": "*",
"mocha": "~1.12.0",
"chai": "~1.7.2",
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.5.3"
}
}