@@ -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
0 commit comments