[Xfce4-commits] <postler:master> Recognise ~/Maildir in addition to ~/Mail as local
Christian Dywan
noreply at xfce.org
Tue Nov 30 17:20:01 CET 2010
Updating branch refs/heads/master
to 424f483717bafa5be7e2f94ea6759f27544ded36 (commit)
from 22607ce7a3b8609cf7e56ccc465180291d99cc19 (commit)
commit 424f483717bafa5be7e2f94ea6759f27544ded36
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Nov 29 23:14:11 2010 +0100
Recognise ~/Maildir in addition to ~/Mail as local
Both are popular choices for local mail.
postler/postler-accounts.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/postler/postler-accounts.vala b/postler/postler-accounts.vala
index b54b324..71cc517 100644
--- a/postler/postler-accounts.vala
+++ b/postler/postler-accounts.vala
@@ -161,6 +161,11 @@ public class Postler.Accounts : GLib.Object {
string local_mail = Environment.get_home_dir () + "/Mail";
if (FileUtils.test (local_mail, FileTest.IS_DIR))
info.path = local_mail;
+ else {
+ local_mail = Environment.get_home_dir () + "/Maildir";
+ if (FileUtils.test (local_mail, FileTest.IS_DIR))
+ info.path = local_mail;
+ }
}
if (info.path != null) {
info.name = _("Local");
More information about the Xfce4-commits
mailing list