[Xfce4-commits] <postler:master> Don't mistake a path argument for an address
Christian Dywan
noreply at xfce.org
Mon Feb 21 00:28:01 CET 2011
Updating branch refs/heads/master
to 2ac7116ef871a322f18519a4aeca4a2d3f29feb9 (commit)
from 3eb3ff63b6ec50261b2564461793a4b42956987c (commit)
commit 2ac7116ef871a322f18519a4aeca4a2d3f29feb9
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Feb 21 00:17:13 2011 +0100
Don't mistake a path argument for an address
postler/postler-reader.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/postler/postler-reader.vala b/postler/postler-reader.vala
index a792753..2178f3e 100644
--- a/postler/postler-reader.vala
+++ b/postler/postler-reader.vala
@@ -68,7 +68,7 @@ public class Postler.Reader {
if (module == null && filenames != null && filenames[0] != null) {
if (filenames[0].has_prefix ("mailto:")
|| filenames[0].has_prefix ("?")
- || filenames[0].str ("@") != null)
+ || (filenames[0].chr (-1, '@') != null && filenames[0].chr (-1, '/') == null))
module = "compose";
else
module = "content";
More information about the Xfce4-commits
mailing list