projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SMTP-Client: strip newlines from smtp replies when setting them as Statusmessage.
[citadel.git]
/
citadel
/
modules
/
smtp
/
smtp_clienthandlers.c
diff --git
a/citadel/modules/smtp/smtp_clienthandlers.c
b/citadel/modules/smtp/smtp_clienthandlers.c
index c974e822bf7d63b2fc8d019d2964de4012fcfef6..1d84fc059560e8de8805b6e5dc5000a1d3ac81b4 100644
(file)
--- 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); \
Msg->MyQEntry->Status = WHICH_ERR; \
StrBufAppendBufPlain(Msg->MyQEntry->StatusMessage, \
HKEY(ERRSTR), 0); \
+ StrBufTrim(Msg->MyQEntry->StatusMessage); \
return eAbort; } \
while (0)
return eAbort; } \
while (0)
@@
-100,6
+101,7
@@
StrBufPlain(Msg->MyQEntry->StatusMessage, \
ChrPtr(Msg->IO.IOBuf) + 4, \
StrLength(Msg->IO.IOBuf) - 4); \
StrBufPlain(Msg->MyQEntry->StatusMessage, \
ChrPtr(Msg->IO.IOBuf) + 4, \
StrLength(Msg->IO.IOBuf) - 4); \
+ StrBufTrim(Msg->MyQEntry->StatusMessage); \
return eAbort; } \
while (0)
return eAbort; } \
while (0)