From: Milan Crha Date: Thu, 10 Jan 2013 19:27:12 +0000 (+0100) Subject: CamelMimeFilterPgp: Ignore right side white spaces X-Git-Tag: upstream/3.7.4~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=974011cf6c3889bc8e40c3e862cded353c091ddf;p=platform%2Fupstream%2Fevolution-data-server.git CamelMimeFilterPgp: Ignore right side white spaces --- diff --git a/camel/camel-mime-filter-pgp.c b/camel/camel-mime-filter-pgp.c index a85e734..7013391 100644 --- a/camel/camel-mime-filter-pgp.c +++ b/camel/camel-mime-filter-pgp.c @@ -31,6 +31,7 @@ #include #include "camel-mime-filter-pgp.h" +#include "camel-mime-utils.h" #define CAMEL_MIME_FILTER_PGP_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE \ @@ -103,6 +104,9 @@ mime_filter_pgp_run (CamelMimeFilter *mime_filter, if (len > 0 && inptr[-1] == '\r') len--; + while (len > 0 && camel_mime_is_lwsp (start[len - 1])) + len--; + inptr++; switch (priv->state) {