From 12b9abbeeaaa4b866cd0212e85e8104c50dfd84e Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sat, 7 Dec 2013 17:59:02 +0100 Subject: [PATCH] STRBUF: RFC2047-Encode Message - don't ommit linebreaks. --- libcitadel/lib/stringbuf.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libcitadel/lib/stringbuf.c b/libcitadel/lib/stringbuf.c index 9275c26b7..90c8cf352 100644 --- a/libcitadel/lib/stringbuf.c +++ b/libcitadel/lib/stringbuf.c @@ -3043,13 +3043,10 @@ StrBuf *StrBufRFC2047encodeMessage(const StrBuf *EncodeMe) } else if (*ptr == '\n') { /* hard line break */ - if ((LinePos > 0) && (isspace(*(Optr-1)))) - { - memcpy(Optr, HKEY("=0A")); - Optr += 3; - } + memcpy(Optr, HKEY("=0A")); + Optr += 3; + LinePos += 3; ptr ++; - LinePos = 0; } else if (( (*ptr >= 32) && (*ptr <= 60) ) || ( (*ptr >= 62) && (*ptr <= 126) )) -- 2.30.2