Updating branch refs/heads/master to 55e546b6ff4f05d5048b8f6980985aaf52a0f0c7 (commit) from 70914387acaa455207184ae6212be1314543d694 (commit)
commit 55e546b6ff4f05d5048b8f6980985aaf52a0f0c7 Author: Christian Dywan <christ...@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; _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits