* When an outgoing message being delivered via SMTP does not properly terminate,...
authorArt Cancro <ajc@citadel.org>
Fri, 15 Jan 2010 02:52:33 +0000 (02:52 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 15 Jan 2010 02:52:33 +0000 (02:52 +0000)
citadel/modules/smtp/serv_smtp.c

index ca62fc3f024c3bdbe621eb8e31d8087739df44fc..8f51a8dbe66994986a7036a6c031f1187f1eaf72 100644 (file)
@@ -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);