From 1112d5f6b77a2212b2f54e4d0f3a080e82c94256 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 15 Jan 2010 02:52:33 +0000 Subject: [PATCH] * 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. --- citadel/modules/smtp/serv_smtp.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2