Skip to content

Commit

Permalink
WIP Instance: let create_user take Cassandane::Mboxname subdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
elliefm committed Dec 6, 2024
1 parent a811475 commit bd47322
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cassandane/Cassandane/Instance.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1073,8 +1073,15 @@ sub create_user
my $adminclient = $adminstore->get_client();

my @mboxes = ( $mb->to_external() );
map { push(@mboxes, $mb->make_child($_)->to_external()); } @{$params{subdirs}}
if ($params{subdirs});
foreach my $subdir (defined $params{subdirs} ? @{$params{subdirs}} : ())
{
if (ref $subdir eq 'Cassandane::Mboxname') {
push(@mboxes, $subdir->to_external());
}
else {
push(@mboxes, $mb->make_child($subdir)->to_external());
}
}

foreach my $mb (@mboxes)
{
Expand Down

0 comments on commit bd47322

Please sign in to comment.