aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-06-02 01:15:55 +0800
committerMilan Crha <mcrha@redhat.com>2009-06-02 01:15:55 +0800
commit700dad871baf9ff39e6e66511856486f75a777cf (patch)
treee8ffc7f51d8847252875f911b55c4564a0ec5d64 /mail
parentde681d39eb1980215c71de9b338e24d0031c0d27 (diff)
downloadgsoc2013-evolution-700dad871baf9ff39e6e66511856486f75a777cf.tar.gz
gsoc2013-evolution-700dad871baf9ff39e6e66511856486f75a777cf.tar.zst
gsoc2013-evolution-700dad871baf9ff39e6e66511856486f75a777cf.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.
Diffstat (limited to 'mail')
-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 7da549cd34..bdacda912e 100644
--- a/mail/em-inline-filter.c
+++ b/mail/em-inline-filter.c
@@ -325,6 +325,9 @@ emif_scan(CamelMimeFilter *f, gchar *in, size_t 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);