[Xfce4-commits] <postler:master> Show blind copy in the message if given

Christian Dywan noreply at xfce.org
Wed Jan 26 20:56:01 CET 2011


Updating branch refs/heads/master
         to 43fd9ce35ddacc9cf8778cbd3bb7c6d4d8a46f1c (commit)
       from 2fabc536884ff27bc51a2f140604d1f9a409cc64 (commit)

commit 43fd9ce35ddacc9cf8778cbd3bb7c6d4d8a46f1c
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Jan 26 20:53:52 2011 +0100

    Show blind copy in the message if given
    
    It can be seen in sent messages, usually not elsewhere.

 postler/postler-content.vala |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index 3c3d3d7..158125f 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -80,6 +80,7 @@ public class Postler.Content : WebKit.WebView {
     string content_encoding;
     string date;
     string carbon_copy;
+    string blind_copy;
     string reply;
     string organization;
     string x_mailer;
@@ -627,7 +628,7 @@ public class Postler.Content : WebKit.WebView {
             now.set_time_val (GLib.TimeVal ());
             recipient = "";
             carbon_copy = "";
-            /* TODO: blind_copy, some clients keep it */
+            blind_copy = "";
             reply = "";
             list_post = "";
             list_unsubscribe = "";
@@ -666,6 +667,10 @@ public class Postler.Content : WebKit.WebView {
                     string cc_charset = null;
                     carbon_copy = parse_encoded (parts[1], out cc_charset);
                 }
+                else if (field == "bcc") {
+                    string bcc_charset = null;
+                    blind_copy = parse_encoded (parts[1], out bcc_charset);
+                }
                 else if (field == "reply-to") {
                     string reply_charset = null;
                     reply = parse_encoded (parts[1], out reply_charset);
@@ -731,6 +736,8 @@ public class Postler.Content : WebKit.WebView {
             }
             if (carbon_copy != "")
                 carbon_copy = linkify_address (carbon_copy, arguments);
+            if (blind_copy != "")
+                blind_copy = linkify_address (blind_copy, arguments);
             if (reply != "")
                 reply = linkify_address (reply, arguments);
             if (list_unsubscribe != "")
@@ -1010,6 +1017,7 @@ public class Postler.Content : WebKit.WebView {
                 <div style="float: right;">%s</div>
                 <b>%s</b> %s<br>
                 %s
+                %s
                 %s <span style="float: right;"><a href="#">%s</a></span>
                 <b>%s</b> %s <br>
                 <span class="extra_headers">
@@ -1026,6 +1034,7 @@ public class Postler.Content : WebKit.WebView {
                         _("From:"), sender,
                         format_header (_("To:"), recipient),
                         format_header (_("Copy:"), carbon_copy),
+                        format_header (_("Blind Copy:"), blind_copy),
                         reply != "" || organization != "" || x_mailer != ""
                             ? "%s »".printf (_("More")) : "",
                         _("Subject:"), subject,



More information about the Xfce4-commits mailing list