Our calendar provisioning code boils down to:
Problem: At first, we did not properly check the return code/output of $add_command. We have five users who had a top-level *email* folder named Moodle. Those folders are now in a state where neither the iCal feed nor the emails previously in those folders are accessible. How can we fix them? zmmailbox mfu doesn't seem to let you unset the URL.
my $add_command = "zmmailbox -z -m " . $user . " cf --view appointment --color cyan --flags \"b#\" \"/Moodle\"";
my $urlset_command = "zmmailbox -z -m " . $user . " mfu \"/Moodle\" \"$cal_url\"";
my $sync_command = "zmmailbox -z -m " . $user . " syncFolder \"/Moodle\"";