LucaBernstein/api:fix-mail-server-connection-close-error
main
prevents error log for already closed connection due to timeout