[pkg-kolab] Fwd: Kolab shared folder userspace prefix
Neil Price
nprice at gibb.co.za
Mon Nov 1 15:10:29 UTC 2010
On 2010/10/22 11:25 PM, Mathieu Parent wrote:
> (forwarding upstream: reading the code it seems on purpose, but why?)
>
Well I found one reason so far: Horde! The "." is hard coded in Horde too.
from /usr/share/horde3/lib/Horde/Kolab/Storage/Folder.php, line 488:
if
(!preg_match(";(shared\.|INBOX[/]?|user/([^/]+)[/]?)([^@]*)(@.*)?;",
$name, $matches)) {
return PEAR::raiseError(sprintf(_("Owner of folder %s
cannot be determined."), $name));
}
> ---------- Forwarded message ----------
> From: Neil Price<nprice at gibb.co.za>
> Date: 2010/10/22
> Subject: [pkg-kolab] Kolab shared folder userspace prefix
> To: pkg-kolab-devel at lists.alioth.debian.org
>
>
> Not sure if this is a bug or a feature or if it exists upstream....
>
> Kolab creates shared folders with name "shared.foldername" instead of
> the expected "shared/foldername" (with unixhierarchysep: yes)
>
> from /usr/share/perl5/Kolab/Cyrus.pm
>
> sub createUid
> {
> my $user = shift;
> my $sf = shift || 0;
> my $seperator = '/';
> my $uidprefix = 'user';
> if ($sf) {
> $seperator = '.';
> $uidprefix = 'shared';
> }
> return $uidprefix . $seperator . $user;
> # return 'user' . ($sf ? '.' : '/') . $user;
> }
>
>
>
> _______________________________________________
> pkg-kolab-devel mailing list
> pkg-kolab-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-kolab-devel
>
>
>
More information about the pkg-kolab-devel
mailing list