From: Art Cancro Date: Fri, 15 Jan 2010 02:52:33 +0000 (+0000) Subject: * When an outgoing message being delivered via SMTP does not properly terminate,... X-Git-Tag: v7.86~500 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=1112d5f6b77a2212b2f54e4d0f3a080e82c94256 * When an outgoing message being delivered via SMTP does not properly terminate, don't just log a warning, but also output an extra CRLF so that the dot terminator on the next line is handled by the receiver. --- diff --git a/citadel/modules/smtp/serv_smtp.c b/citadel/modules/smtp/serv_smtp.c index ca62fc3f0..8f51a8dbe 100644 --- a/citadel/modules/smtp/serv_smtp.c +++ b/citadel/modules/smtp/serv_smtp.c @@ -1249,6 +1249,7 @@ void smtp_try(const char *key, const char *addr, int *status, CtdlLogPrintf(CTDL_WARNING, "Possible problem: message did not " "correctly terminate. (expecting 0x10, got 0x%02x)\n", buf[msg_size-1]); + sock_write(sock, "\r\n", 2); } sock_write(sock, ".\r\n", 3);