Update imap-tests.ts

This commit is contained in:
Steve Fenton
2014-11-23 22:12:48 +00:00
parent b19efc4fbe
commit 5e68541a50

View File

@@ -94,11 +94,11 @@ imap.openBox('INBOX', true, function (err, box) {
});
});
var fs = require('fs'), fileStream;
var fs = require('fs'), fileStream : any;
imap.openBox('INBOX', true,function (err, box) {
if (err) throw err;
imap.search(['UNSEEN', ['SINCE', 'May 20, 2010']], function (err, results) {
imap.search(['UNSEEN', ['SINCE', 'May 20, 2010']], function (err : Error, results: any) {
if (err) throw err;
var f = imap.fetch(results, { bodies: '' });
f.on('message', function (msg, seqno) {