aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-06-02 01:15:55 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-06-02 22:37:43 +0800
commit6516c41c846cfe5e4216c4797f155dc7e2b6fb43 (patch)
tree0d0f40d93d234d6fd26661e159abf29ef6109e13
parentc0a53378bac8827c19cb0dc345c9d939279f64b7 (diff)
downloadgsoc2013-evolution-6516c41c846cfe5e4216c4797f155dc7e2b6fb43.tar
gsoc2013-evolution-6516c41c846cfe5e4216c4797f155dc7e2b6fb43.tar.gz
gsoc2013-evolution-6516c41c846cfe5e4216c4797f155dc7e2b6fb43.tar.bz2
gsoc2013-evolution-6516c41c846cfe5e4216c4797f155dc7e2b6fb43.tar.lz
gsoc2013-evolution-6516c41c846cfe5e4216c4797f155dc7e2b6fb43.tar.xz
gsoc2013-evolution-6516c41c846cfe5e4216c4797f155dc7e2b6fb43.tar.zst
gsoc2013-evolution-6516c41c846cfe5e4216c4797f155dc7e2b6fb43.zip
Part of bug #580212 - Report inline parts only when found both tags
When parsing inline parts, like inline signatures, report the part type only when found also the end tag for the part type.
-rw-r--r--mail/em-inline-filter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/em-inline-filter.c b/mail/em-inline-filter.c
index ddc579b40b..efc05d73e3 100644
--- a/mail/em-inline-filter.c
+++ b/mail/em-inline-filter.c
@@ -326,6 +326,9 @@ emif_scan(CamelMimeFilter *f, gchar *in, gsize len, gint final)
}
if (final) {
+ /* always stop as plain, especially when not read those tags fully */
+ emif->state = EMIF_PLAIN;
+
emif_add_part(emif, data_start, inend-data_start);
} else {
g_byte_array_append(emif->data, (guchar *)data_start, inend-data_start);