SMTP-Client: on success strip reply too.
[citadel.git] / citadel / modules / smtp / smtp_clienthandlers.c
index 1d84fc059560e8de8805b6e5dc5000a1d3ac81b4..e7ccae385bf33a4acef572684847d623b9eec916 100644 (file)
@@ -356,6 +356,7 @@ eNextState SMTPC_read_data_body_reply(SmtpOutMsg *Msg)
        StrBufPlain(Msg->MyQEntry->StatusMessage,
                    &ChrPtr(Msg->IO.RecvBuf.Buf)[4],
                    StrLength(Msg->IO.RecvBuf.Buf) - 4);
+       StrBufTrim(Msg->MyQEntry->StatusMessage);
        Msg->MyQEntry->Status = 2;
        return eSendReply;
 }