[Xfce4-commits] <postler:master> Compose if an address is given on the command line

Christian Dywan noreply at xfce.org
Mon May 31 00:26:03 CEST 2010


Updating branch refs/heads/master
         to 55e546b6ff4f05d5048b8f6980985aaf52a0f0c7 (commit)
       from 70914387acaa455207184ae6212be1314543d694 (commit)

commit 55e546b6ff4f05d5048b8f6980985aaf52a0f0c7
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun May 30 23:14:34 2010 +0200

    Compose if an address is given on the command line

 postler/postler-reader.vala |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/postler/postler-reader.vala b/postler/postler-reader.vala
index c8fd800..7b1b9c8 100644
--- a/postler/postler-reader.vala
+++ b/postler/postler-reader.vala
@@ -51,9 +51,12 @@ public class Postler.Reader {
         Postler.App.register_stock_items ();
 
         /* Render mail files by default */
-        /* TODO: "compose" if an address is passed */
-        if (filenames != null && filenames[0] != null && module == null)
-            module = "content";
+        if (module == null && filenames != null && filenames[0] != null) {
+            if (filenames[0].str ("@") != null)
+                module = "compose";
+            else
+                module = "content";
+        }
 
         if (module != null) {
             Gtk.Widget instance = null;



More information about the Xfce4-commits mailing list