From 7823515de1fd4ecd7bde64f93b160c92c150653b Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sat, 7 Dec 2019 01:08:04 -0500 Subject: [PATCH] Applied patch sent by Vijay Kumar to correct SMTP dot de-stuffing --- citadel/msgbase.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/citadel/msgbase.c b/citadel/msgbase.c index 397826009..8421dfc11 100644 --- a/citadel/msgbase.c +++ b/citadel/msgbase.c @@ -3108,13 +3108,9 @@ StrBuf *CtdlReadMessageBodyBuf(char *terminator, /* token signalling EOT */ } /* Unescape SMTP-style input of two dots at the beginning of the line */ - if ((dotdot) && - (StrLength(LineBuf) == 2) && - (!strcmp(ChrPtr(LineBuf), ".."))) - { + if ((dotdot) && (StrLength(LineBuf) > 1) && (ChrPtr(LineBuf)[0] == '.')) { StrBufCutLeft(LineBuf, 1); } - StrBufAppendBuf(Message, LineBuf, 0); } -- 2.30.2