From 52390fecea3c0c634d90543fe763f6e84bba19ca Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 18 Jul 2004 15:16:50 +0000 Subject: [PATCH] Added check for single dot in rfc2ftn --- ChangeLog | 2 ++ mbfido/ftn2rfc.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2a1a778f..c9bfdc87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -42,6 +42,8 @@ v0.61.2 11-Jul-2004 replace - Removed debug logging from toberep function since all problems seems solved. + In rfc2ftn added check for ".\n" to change to " .\n" instead of + only check for ".\r\n". mbout: Changed to use direct instead of immediate mail. diff --git a/mbfido/ftn2rfc.c b/mbfido/ftn2rfc.c index 118d2bc3..7e617738 100644 --- a/mbfido/ftn2rfc.c +++ b/mbfido/ftn2rfc.c @@ -1580,7 +1580,7 @@ int ftn2rfc(faddr *f, faddr *t, char *subj, char *origline, time_t mdate, int fl } } } - if (strncmp(buf, ".\r\n", 3)) + if ((strncmp(buf, ".\r\n", 3)) && (strncmp(buf, ".\n", 2))) q = xstrcpy(buf); else q = xstrcpy((char *)" .\n");