From aa8b1021b70043469d32645ea2961794fbccaa32 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sat, 5 May 2012 17:16:13 +0200 Subject: [PATCH] SMTP-Client: strip newlines from smtp replies when setting them as Statusmessage. --- citadel/modules/smtp/smtp_clienthandlers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/citadel/modules/smtp/smtp_clienthandlers.c b/citadel/modules/smtp/smtp_clienthandlers.c index c974e822b..1d84fc059 100644 --- a/citadel/modules/smtp/smtp_clienthandlers.c +++ b/citadel/modules/smtp/smtp_clienthandlers.c @@ -92,6 +92,7 @@ Msg->MyQEntry->Status = WHICH_ERR; \ StrBufAppendBufPlain(Msg->MyQEntry->StatusMessage, \ HKEY(ERRSTR), 0); \ + StrBufTrim(Msg->MyQEntry->StatusMessage); \ return eAbort; } \ while (0) @@ -100,6 +101,7 @@ StrBufPlain(Msg->MyQEntry->StatusMessage, \ ChrPtr(Msg->IO.IOBuf) + 4, \ StrLength(Msg->IO.IOBuf) - 4); \ + StrBufTrim(Msg->MyQEntry->StatusMessage); \ return eAbort; } \ while (0) -- 2.30.2