1 |
--- smeserver-zarafa-0.9.0/root/etc/e-smith/templates-user/.qmail/80Zarafa.zarafaPublic 2009-07-27 20:20:42.000000000 +1000 |
2 |
+++ smeserver-zarafa-0.9.0/root/etc/e-smith/templates-user/.qmail/80Zarafa 2009-07-27 20:35:44.000000000 +1000 |
3 |
@@ -1,6 +1,13 @@ |
4 |
{ |
5 |
my $zarafa = $user->prop('zarafa') || 'disabled'; |
6 |
+ my $zarafaPublic = $user->prop('zarafaPublic') || 'disabled'; |
7 |
my $zarafa2 = ${'zarafa-server'}{GlobalForward} || 'disabled'; |
8 |
- return "| /usr/bin/zarafa-dagent -q $USERNAME ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;" |
9 |
- if ($zarafa eq 'enabled' || $zarafa2 eq 'enabled'); |
10 |
+ |
11 |
+ if ($zarafa eq 'enabled' || $zarafa2 eq 'enabled') |
12 |
+ { |
13 |
+ if ($zarafaPublic eq 'enabled') |
14 |
+ { return "| /usr/bin/zarafa-dagent --public 'Public Folders\\$USERNAME' -C $USERNAME ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;"; } |
15 |
+ else |
16 |
+ { return "| /usr/bin/zarafa-dagent -q $USERNAME ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;" } |
17 |
+ } |
18 |
} |