From 117f3abbfbcffc3a1f7a70f313b83f4892c215ac Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 23 May 2000 03:26:36 +0000 Subject: more stuff svn path=/trunk/; revision=3170 --- camel/camel-mime-filter-smtp.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/camel/camel-mime-filter-smtp.c b/camel/camel-mime-filter-smtp.c index 5bfeea5ff4..79986fe959 100644 --- a/camel/camel-mime-filter-smtp.c +++ b/camel/camel-mime-filter-smtp.c @@ -108,13 +108,16 @@ filter(CamelMimeFilter *mf, char *in, size_t len, size_t prespace, char **out, s ; if (c == '\n' || !midline) { - linecount++; - node = alloca(sizeof(*node)); - node->type = EOLN_NODE; - node->pointer = inptr - 1; - node->next = NULL; - tail->next = node; - tail = node; + /* if there isn't already a carriage-return before the line-feed, count it */ + if (*(inptr-1) != '\r') { + linecount++; + node = alloca(sizeof(*node)); + node->type = EOLN_NODE; + node->pointer = inptr - 1; + node->next = NULL; + tail->next = node; + tail = node; + } left = inend - inptr; if (left > 0) { -- cgit v1.2.3