作者 邓超

代理 smtp 异常 退出时超时

@@ -1060,7 +1060,15 @@ class SMTP @@ -1060,7 +1060,15 @@ class SMTP
1060 } 1060 }
1061 $this->client_send($commandstring . static::LE, $command); 1061 $this->client_send($commandstring . static::LE, $command);
1062 1062
1063 - $this->last_reply = $this->get_lines(); 1063 + if($command=='QUIT'&&$this->proxy_server){
  1064 + $this->last_reply = '221 Bye.';
  1065 + }else{
  1066 + $this->last_reply = $this->get_lines();
  1067 + if($command=='QUIT'){
  1068 + $this->last_reply = ltrim($this->last_reply);
  1069 + }
  1070 + }
  1071 +
1064 //Fetch SMTP code and possible error code explanation 1072 //Fetch SMTP code and possible error code explanation
1065 $matches = []; 1073 $matches = [];
1066 if (preg_match('/^([\d]{3})[ -](?:([\d]\\.[\d]\\.[\d]{1,2}) )?/', $this->last_reply, $matches)) { 1074 if (preg_match('/^([\d]{3})[ -](?:([\d]\\.[\d]\\.[\d]{1,2}) )?/', $this->last_reply, $matches)) {