From 700dad871baf9ff39e6e66511856486f75a777cf Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 1 Jun 2009 19:15:55 +0200 Subject: 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. --- mail/em-inline-filter.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mail') 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); -- cgit v1.2.3