aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/camel-mime-filter-smtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-mime-filter-smtp.c b/camel/camel-mime-filter-smtp.c
index 79986fe959..137b38689d 100644
--- a/camel/camel-mime-filter-smtp.c
+++ b/camel/camel-mime-filter-smtp.c
@@ -101,7 +101,7 @@ filter(CamelMimeFilter *mf, char *in, size_t len, size_t prespace, char **out, s
/* first, see if we need to escape any from's */
while (inptr < inend) {
- register int c = -1;
+ register gint c = -1;
if (midline)
while (inptr < inend && (c = *inptr++) != '\n')
@@ -143,7 +143,7 @@ filter(CamelMimeFilter *mf, char *in, size_t len, size_t prespace, char **out, s
tail = node;
inptr += 5;
} else {
- if (!strncmp(inptr, ".\n", 2)) {
+ if (!strncmp(inptr, ".\n", 2) || !strncmp(inptr, ".\r\n", 3)) {
dotcount++;
node = alloca(sizeof(*node));
node->type = DOT_NODE;