Skip to content

Commit

Permalink
4.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
KloakIT committed May 20, 2020
1 parent 46cc8f6 commit 5e86b33
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions core/tools/imap.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ class ImapServerSwitchStream extends Stream.Transform {
this.Tag = `A${this.imapServer.TagCount1()}`;
this.cmd = `APPEND "${this.imapServer.writeFolder}" {${out.length}${this.imapServer.literalPlus ? '+' : ''}}`;
this.cmd = `${this.Tag} ${this.cmd}`;
const time = out.length + 15000;
const time = out.length + 30000;
this.debug ? debugOut(this.cmd, false, this.imapServer.listenFolder || this.imapServer.imapSerialID) : null;
if (!this.writable) {
//console.log (`[${ this.imapServer.imapSerialID }] ImapServerSwitchStream append !this.writable doing imapServer.socket.end ()`)
Expand Down Expand Up @@ -632,7 +632,7 @@ class ImapServerSwitchStream extends Stream.Transform {
this.Tag = `A${this.imapServer.TagCount1()}`;
this.cmd = `APPEND "${folderName}" {${_length}${this.imapServer.literalPlus ? '+' : ''}}`;
this.cmd = `${this.Tag} ${this.cmd}`;
const _time = _length / 1000 + 20000;
const _time = _length + 1000 * 60;
this.debug ? debugOut(this.cmd, false, this.imapServer.listenFolder || this.imapServer.imapSerialID) : null;
if (!this.writable) {
return this.doCommandCallback(new Error('! imap.writable '));
Expand Down Expand Up @@ -717,7 +717,7 @@ class ImapServerSwitchStream extends Stream.Transform {
this.appendWaitResponsrTimeOut = timers_1.setTimeout(() => {
//this.imapServer.emit ( 'error', new Error (`${ this.cmd } timeout!`))
return this.doCommandCallback(new Error(`${this.cmd} timeout!`));
}, this.imapServer.fetching + 15000);
}, this.imapServer.fetching + 1000 * 60);
if (this.writable) {
return this.push(this.cmd + '\r\n');
}
Expand Down
8 changes: 4 additions & 4 deletions core/tools/imap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ class ImapServerSwitchStream extends Stream.Transform {
this.Tag = `A${ this.imapServer.TagCount1() }`
this.cmd = `APPEND "${ this.imapServer.writeFolder }" {${ out.length }${ this.imapServer.literalPlus ? '+' : ''}}`
this.cmd = `${ this.Tag } ${ this.cmd }`
const time = out.length + 15000
const time = out.length + 30000
this.debug ? debugOut ( this.cmd, false, this.imapServer.listenFolder || this.imapServer.imapSerialID ) : null
if ( !this.writable ) {
//console.log (`[${ this.imapServer.imapSerialID }] ImapServerSwitchStream append !this.writable doing imapServer.socket.end ()`)
Expand All @@ -701,7 +701,7 @@ class ImapServerSwitchStream extends Stream.Transform {
this.push ( this.cmd + '\r\n' )

this.appendWaitResponsrTimeOut = setTimeout (() => {
return this.doCommandCallback( new Error ( `IMAP append TIMEOUT` ))
return this.doCommandCallback ( new Error ( `IMAP append TIMEOUT` ))
}, time )

//console.log (`************************************* append time = [${ time }] `)
Expand Down Expand Up @@ -776,7 +776,7 @@ class ImapServerSwitchStream extends Stream.Transform {
this.Tag = `A${ this.imapServer.TagCount1() }`
this.cmd = `APPEND "${ folderName }" {${ _length }${ this.imapServer.literalPlus ? '+' : ''}}`
this.cmd = `${ this.Tag } ${ this.cmd }`
const _time = _length / 1000 + 20000
const _time = _length + 1000 * 60
this.debug ? debugOut ( this.cmd, false, this.imapServer.listenFolder || this.imapServer.imapSerialID ) : null
if ( !this.writable ) {
return this.doCommandCallback ( new Error ('! imap.writable '))
Expand Down Expand Up @@ -889,7 +889,7 @@ class ImapServerSwitchStream extends Stream.Transform {
this.appendWaitResponsrTimeOut = setTimeout (() => {
//this.imapServer.emit ( 'error', new Error (`${ this.cmd } timeout!`))
return this.doCommandCallback ( new Error (`${ this.cmd } timeout!`))
}, this.imapServer.fetching + 15000 )
}, this.imapServer.fetching + 1000 * 60 )

if ( this.writable ) {

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "conet",
"version": "4.0.2",
"version": "4.0.4",
"license": "MIT",
"description": "CoNET",
"repository": {
Expand Down

0 comments on commit 5e86b33

Please sign in to comment.