aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-folder.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/imap/camel-imap-folder.c')
-rw-r--r--camel/providers/imap/camel-imap-folder.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index 2148458b35..48ae72d032 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -998,18 +998,18 @@ get_header_field (gchar *header, gchar *field)
index = (char *) e_strstrcase (header, field);
if (index == NULL)
return NULL;
-
+
p = index + strlen (field) + 1;
for (q = p; *q; q++)
- if (*q == '\n' && (*(q + 1) != ' ' || *(q + 1) != '\t'))
+ if (*q == '\n' && (*(q + 1) != ' ' && *(q + 1) != '\t'))
break;
-
+
part = g_strndup (p, (gint)(q - p));
-
+
/* it may be wrapped on multiple lines, so lets strip out \n's */
for (p = part; *p; ) {
- if (*p == '\r' || *p == '\n')
- memmove (p, p + 1, strlen (p) - 1);
+ if (*p == '\n')
+ memmove (p, p + 1, strlen (p));
else
p++;
}