aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/camel-mime-part.c8
-rw-r--r--camel/providers/imap/camel-imap-folder.c2
2 files changed, 6 insertions, 4 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c
index c7545a6a9c..320324701b 100644
--- a/camel/camel-mime-part.c
+++ b/camel/camel-mime-part.c
@@ -43,6 +43,7 @@
#include "camel-mime-filter-charset.h"
#include "camel-mime-part.h"
#include "camel-mime-part-utils.h"
+#include "camel-mime-utils.h"
#include "camel-exception.h"
#include "camel-charset-map.h"
#include "string-utils.h"
@@ -235,7 +236,8 @@ process_header(CamelMedium *medium, const char *header_name, const char *header_
case HEADER_CONTENT_ID:
g_free (mime_part->content_id);
if (!(mime_part->content_id = header_msgid_decode (header_value))) {
- header_decode_lwsp (&header_value);
+ while (*header_value && strchr (" \t\r\n", *header_value))
+ header_value++;
if (*header_value == '<') {
p = header_value;
while (*p && *p != '>')
@@ -245,8 +247,8 @@ process_header(CamelMedium *medium, const char *header_name, const char *header_
mime_part->content_id = g_strdup (header_value);
}
- if (mime_part->header_value)
- g_strstrip (mime_part->header_value);
+ if (mime_part->content_id)
+ g_strstrip (mime_part->content_id);
}
break;
case HEADER_ENCODING:
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index da59669783..09e4f8d8f1 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -380,7 +380,7 @@ camel_imap_folder_selected (CamelFolder *folder, CamelImapResponse *response,
camel_imap_folder_changed (folder, exists, NULL, ex);
/* And we're done. */
-}
+}
static void
imap_finalize (CamelObject *object)
-1/+1 * At the moment 1385 ports use BUILD_DEPENDS= ${RUN_DEPENDS} and 450eadler2012-01-221-1/+1 * - Get Rid MD5 supportmiwi2011-03-201-2/+0 * - Take advantage of CPAN macro from bsd.sites.mk, change ${MASTER_SITE_PERL_C...araujo2008-04-171-2/+1 * Remove 4.x workarounderwin2007-07-041-11/+3 * Update to 1.19skv2006-11-062-6/+8 * Add support for DESTDIR part I.erwin2006-08-041-1/+0 * SHA256ify (manually done and checked)edwin2006-01-221-2/+4 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-2/+2 * PORTREVISION++ to fix PKGNAME issueskv2005-09-141-1/+1 * * OPTIONSify port - add support for OCI8 (via databases/oracle8-client)skv2005-09-142-10/+27