[Xfce4-commits] <postler:master> Discard unknown part headers so they won't show up in the message

Christian Dywan noreply at xfce.org
Thu Jul 29 12:26:09 CEST 2010


Updating branch refs/heads/master
         to 3f961a10e3b4277f5bf3e0f47d0a3a3e78d46596 (commit)
       from 3df2e13d894246ece1aab24d0dbbe0f0a48f22b6 (commit)

commit 3f961a10e3b4277f5bf3e0f47d0a3a3e78d46596
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Jul 25 18:14:31 2010 +0200

    Discard unknown part headers so they won't show up in the message

 postler/postler-content.vala |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index 992836d..81094eb 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -574,6 +574,11 @@ public class Postler.Content : WebKit.WebView {
                         }
                     }
                     else if (multipart == 2) {
+                        if (line == "") {
+                            multipart++;
+                            continue;
+                        }
+
                         /* Content-Type can span over multiple lines */
                         if (mime_types[body_parts].has_suffix (";"))
                             parts = { "content-type",
@@ -593,12 +598,11 @@ public class Postler.Content : WebKit.WebView {
                             if (mtype != "text/plain")
                                 plain_text = false;
                             mime_types[body_parts] = mtype;
-                            continue;
                         }
                         else if (field == "content-transfer-encoding") {
                             content_encoding = parts[1].strip ();
-                            continue;
                         }
+                        continue;
                     }
                     else if (multipart == 1)
                         continue;



More information about the Xfce4-commits mailing list