imap-proxy.c (dovecot-2.3.16) | : | imap-proxy.c (dovecot-2.3.17) | ||
---|---|---|---|---|
skipping to change at line 441 | skipping to change at line 441 | |||
if (proxy_write_login(imap_client, str) < 0) | if (proxy_write_login(imap_client, str) < 0) | |||
return -1; | return -1; | |||
} | } | |||
o_stream_nsend(output, str_data(str), str_len(str)); | o_stream_nsend(output, str_data(str), str_len(str)); | |||
return 1; | return 1; | |||
} | } | |||
return 0; | return 0; | |||
} else if (strncasecmp(line, "* ID ", 5) == 0) { | } else if (strncasecmp(line, "* ID ", 5) == 0) { | |||
/* Reply to ID command we sent, ignore it */ | /* Reply to ID command we sent, ignore it */ | |||
return 0; | return 0; | |||
} else if (str_begins(line, "* BYE ")) { | ||||
/* Login unexpectedly failed (due to some internal error). | ||||
Don't forward the BYE to the client, since we're not going | ||||
to disconnect it. It could be a possibility to convert these | ||||
to NO replies, but they're likely not going to provide | ||||
anything useful. */ | ||||
return 0; | ||||
} else if (str_begins(line, "* ")) { | } else if (str_begins(line, "* ")) { | |||
/* untagged reply. just forward it. */ | /* untagged reply. just forward it. */ | |||
client_send_raw(client, t_strconcat(line, "\r\n", NULL)); | client_send_raw(client, t_strconcat(line, "\r\n", NULL)); | |||
return 0; | return 0; | |||
} else { | } else { | |||
/* tagged reply, shouldn't happen. */ | /* tagged reply, shouldn't happen. */ | |||
e_error(login_proxy_get_event(client->login_proxy), | e_error(login_proxy_get_event(client->login_proxy), | |||
"Unexpected input, ignoring: %s", | "Unexpected input, ignoring: %s", | |||
str_sanitize(line, 160)); | str_sanitize(line, 160)); | |||
return 0; | return 0; | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 7 lines changed or added |