[Xfce4-commits] <postler:master> Add a 'path' field for Maildir accounts

Christian Dywan noreply at xfce.org
Fri Jun 18 00:06:01 CEST 2010


Updating branch refs/heads/master
         to cf2a40c43a9bc94ec3cc72b38375b46592f89d8c (commit)
       from d29fe02452b294d7304f4c128acdc1567661d87e (commit)

commit cf2a40c43a9bc94ec3cc72b38375b46592f89d8c
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Jun 16 23:21:44 2010 +0200

    Add a 'path' field for Maildir accounts

 postler/postler-accounts.vala |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/postler/postler-accounts.vala b/postler/postler-accounts.vala
index 6d1d422..122accf 100644
--- a/postler/postler-accounts.vala
+++ b/postler/postler-accounts.vala
@@ -100,7 +100,10 @@ public class Postler.Accounts : GLib.Object {
                 info.name = name;
                 if (type == "maildir") {
                     info.type = AccountType.MAILDIR;
-                    info.path = data_path + name;
+                    if (keyfile.has_key (group, "path"))
+                        info.path = keyfile.get_string (group, "path");
+                    else
+                        info.path = data_path + name;
                 }
                 else if (type == "imap") {
                     info.type = AccountType.IMAP;



More information about the Xfce4-commits mailing list