diff options
Diffstat (limited to 'camel/gmime-utils.c')
-rw-r--r-- | camel/gmime-utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/camel/gmime-utils.c b/camel/gmime-utils.c index 7ceb0219ec..d903eb8a71 100644 --- a/camel/gmime-utils.c +++ b/camel/gmime-utils.c @@ -130,6 +130,13 @@ _store_header_pair_from_string (GArray *header_array, gchar *header_line) if (header_line) { + char *p = strchr(header_line, ':'); + if (p) { + header.name = g_strndup(header_line, p-header_line); + header.value = g_strdup(p+1); + g_array_append_val (header_array, header); + } +#if 0 dich_result = string_dichotomy ( header_line, ':', &header_name, &header_value, STRING_DICHOTOMY_NONE); @@ -152,6 +159,7 @@ _store_header_pair_from_string (GArray *header_array, gchar *header_line) header.value = header_value; g_array_append_val (header_array, header); } +#endif } CAMEL_LOG_FULL_DEBUG ( "_store_header_pair_from_string:: Leaving\n"); |