[Xfce4-commits] <postler:master> Don't bother passing recipients via GetMessage

Christian Dywan noreply at xfce.org
Thu Jul 7 19:58:01 CEST 2011


Updating branch refs/heads/master
         to 792368897cb8608f1a0f08bf16685c0bfe569cf9 (commit)
       from f944b3307fecbbed422d12b76e0ec5a8be15ef98 (commit)

commit 792368897cb8608f1a0f08bf16685c0bfe569cf9
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Jul 7 18:45:24 2011 +0200

    Don't bother passing recipients via GetMessage

 postler/postler-index.vala   |    2 +-
 postler/postler-message.vala |    3 ---
 2 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/postler/postler-index.vala b/postler/postler-index.vala
index 6925225..d8e2542 100644
--- a/postler/postler-index.vala
+++ b/postler/postler-index.vala
@@ -294,7 +294,7 @@ namespace Postler {
         public Message get_message (string id) throws GLib.Error {
             if (statement_get == null) {
                 if (database.prepare_v2 ("""
-                    SELECT subject, sender, recipients,
+                    SELECT subject, sender, 0,
                     unread, flagged, forwarded, replied, priority, date, uri, excerpt,
                     (SELECT COUNT (*) FROM messages WHERE threads = ?1 AND unread = 1) AS replies
                     FROM messages
diff --git a/postler/postler-message.vala b/postler/postler-message.vala
index f6ab6ae..d9e3bee 100644
--- a/postler/postler-message.vala
+++ b/postler/postler-message.vala
@@ -133,7 +133,6 @@ namespace Postler {
             message_data.insert ("sender", this.sender ?? "");
             if (avatar != null)
                 message_data.insert ("avatar", avatar.get_uri ());
-            message_data.insert ("recipients", this.recipients ?? "");
             message_data.insert ("unread", this.unread);
             message_data.insert ("flagged", this.flagged);
             message_data.insert ("forwarded", this.forwarded);
@@ -161,7 +160,6 @@ namespace Postler {
             Variant? avatar = message_data.lookup ("avatar");
             if (avatar != null)
                 this.avatar = GLib.File.new_for_uri (avatar.get_string ());
-            this.recipients = message_data.lookup ("recipients").get_string ();
             this.unread = message_data.lookup ("unread").get_boolean ();
             this.flagged = message_data.lookup ("flagged").get_boolean ();
             this.forwarded = message_data.lookup ("forwarded").get_boolean ();
@@ -176,7 +174,6 @@ namespace Postler {
             this.replies = statement.column_int64 (11);
             this.subject = statement.column_text (0);
             this.sender = statement.column_text (1);
-            this.recipients = statement.column_text (2);
             this.unread = statement.column_int64 (3) != 0;
             this.flagged = statement.column_int64 (4) != 0;
             this.forwarded = statement.column_int64 (5) != 0;



More information about the Xfce4-commits mailing list