mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
SMTP: Support multiline greeting from server in INIT state. Thanks to Ivanov Juriy for helping identify the problem. Relates to #1845.
This commit is contained in:
parent
f22f7cf17a
commit
54bf386794
1 changed files with 4 additions and 0 deletions
|
@ -174,6 +174,10 @@ void Smtp::readyRead()
|
||||||
switch(state) {
|
switch(state) {
|
||||||
case Init: {
|
case Init: {
|
||||||
if (code[0] == '2') {
|
if (code[0] == '2') {
|
||||||
|
// The server may send a multiline greeting/INIT/220 response.
|
||||||
|
// We wait until it finishes.
|
||||||
|
if (line[3] != ' ')
|
||||||
|
break;
|
||||||
// Connection was successful
|
// Connection was successful
|
||||||
ehlo();
|
ehlo();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue