SMTP-Client: strip newlines from smtp replies when setting them as Statusmessage.
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 5 May 2012 15:16:13 +0000 (17:16 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 5 May 2012 15:16:13 +0000 (17:16 +0200)
citadel/modules/smtp/smtp_clienthandlers.c

index c974e822bf7d63b2fc8d019d2964de4012fcfef6..1d84fc059560e8de8805b6e5dc5000a1d3ac81b4 100644 (file)
@@ -92,6 +92,7 @@
                Msg->MyQEntry->Status = WHICH_ERR;                     \
                StrBufAppendBufPlain(Msg->MyQEntry->StatusMessage,     \
                                     HKEY(ERRSTR), 0);                 \
+               StrBufTrim(Msg->MyQEntry->StatusMessage);              \
                return eAbort; }                                       \
        while (0)
 
                StrBufPlain(Msg->MyQEntry->StatusMessage,      \
                            ChrPtr(Msg->IO.IOBuf) + 4,         \
                            StrLength(Msg->IO.IOBuf) - 4);     \
+               StrBufTrim(Msg->MyQEntry->StatusMessage);      \
                return eAbort; }                               \
        while (0)