Skip to content

Commit 5e86b33

Browse files
committed
4.0.4
1 parent 46cc8f6 commit 5e86b33

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

core/tools/imap.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ class ImapServerSwitchStream extends Stream.Transform {
563563
this.Tag = `A${this.imapServer.TagCount1()}`;
564564
this.cmd = `APPEND "${this.imapServer.writeFolder}" {${out.length}${this.imapServer.literalPlus ? '+' : ''}}`;
565565
this.cmd = `${this.Tag} ${this.cmd}`;
566-
const time = out.length + 15000;
566+
const time = out.length + 30000;
567567
this.debug ? debugOut(this.cmd, false, this.imapServer.listenFolder || this.imapServer.imapSerialID) : null;
568568
if (!this.writable) {
569569
//console.log (`[${ this.imapServer.imapSerialID }] ImapServerSwitchStream append !this.writable doing imapServer.socket.end ()`)
@@ -632,7 +632,7 @@ class ImapServerSwitchStream extends Stream.Transform {
632632
this.Tag = `A${this.imapServer.TagCount1()}`;
633633
this.cmd = `APPEND "${folderName}" {${_length}${this.imapServer.literalPlus ? '+' : ''}}`;
634634
this.cmd = `${this.Tag} ${this.cmd}`;
635-
const _time = _length / 1000 + 20000;
635+
const _time = _length + 1000 * 60;
636636
this.debug ? debugOut(this.cmd, false, this.imapServer.listenFolder || this.imapServer.imapSerialID) : null;
637637
if (!this.writable) {
638638
return this.doCommandCallback(new Error('! imap.writable '));
@@ -717,7 +717,7 @@ class ImapServerSwitchStream extends Stream.Transform {
717717
this.appendWaitResponsrTimeOut = timers_1.setTimeout(() => {
718718
//this.imapServer.emit ( 'error', new Error (`${ this.cmd } timeout!`))
719719
return this.doCommandCallback(new Error(`${this.cmd} timeout!`));
720-
}, this.imapServer.fetching + 15000);
720+
}, this.imapServer.fetching + 1000 * 60);
721721
if (this.writable) {
722722
return this.push(this.cmd + '\r\n');
723723
}

core/tools/imap.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ class ImapServerSwitchStream extends Stream.Transform {
691691
this.Tag = `A${ this.imapServer.TagCount1() }`
692692
this.cmd = `APPEND "${ this.imapServer.writeFolder }" {${ out.length }${ this.imapServer.literalPlus ? '+' : ''}}`
693693
this.cmd = `${ this.Tag } ${ this.cmd }`
694-
const time = out.length + 15000
694+
const time = out.length + 30000
695695
this.debug ? debugOut ( this.cmd, false, this.imapServer.listenFolder || this.imapServer.imapSerialID ) : null
696696
if ( !this.writable ) {
697697
//console.log (`[${ this.imapServer.imapSerialID }] ImapServerSwitchStream append !this.writable doing imapServer.socket.end ()`)
@@ -701,7 +701,7 @@ class ImapServerSwitchStream extends Stream.Transform {
701701
this.push ( this.cmd + '\r\n' )
702702

703703
this.appendWaitResponsrTimeOut = setTimeout (() => {
704-
return this.doCommandCallback( new Error ( `IMAP append TIMEOUT` ))
704+
return this.doCommandCallback ( new Error ( `IMAP append TIMEOUT` ))
705705
}, time )
706706

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

894894
if ( this.writable ) {
895895

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "conet",
3-
"version": "4.0.2",
3+
"version": "4.0.4",
44
"license": "MIT",
55
"description": "CoNET",
66
"repository": {

0 commit comments

Comments
 (0)