fix some typos
This commit is contained in:
parent
db654ed310
commit
0aa630ca7e
@ -533,7 +533,7 @@ Cloudron.prototype.saveSieveScript = function (owner, callback) {
|
||||
if (error) return callback(error);
|
||||
|
||||
socket.write(authString + '\n');
|
||||
socket.write('PUTSCRIPT \"hutsefluts\" {6+}\nkeep;\nQUIT\n');
|
||||
socket.write('PUTSCRIPT "hutsefluts" {6+}\nkeep;\n\nLOGOUT\n');
|
||||
|
||||
setTimeout(function () {
|
||||
socket.end();
|
||||
@ -544,7 +544,7 @@ Cloudron.prototype.saveSieveScript = function (owner, callback) {
|
||||
socket.on('data', function (chunk) {
|
||||
data += chunk.toString('utf8');
|
||||
|
||||
if (data.toString('utf8').indexOf('OK "Logged in."') !== -1) return callback();
|
||||
if (data.toString('utf8').indexOf('OK "PUTSCRIPT completed."') !== -1) return callback();
|
||||
});
|
||||
|
||||
socket.on('end', function () { });
|
||||
@ -561,7 +561,7 @@ Cloudron.prototype.checkSieveScript = function (owner, callback) {
|
||||
if (error) return callback(error);
|
||||
|
||||
socket.write(authString + '\n');
|
||||
socket.write('LISTSCRIPTS\nQUIT\n');
|
||||
socket.write('LISTSCRIPTS\nLOGOUT\n');
|
||||
|
||||
setTimeout(function () {
|
||||
socket.end();
|
||||
|
Loading…
Reference in New Issue
Block a user