Hello,
I'm creating a plugin for multiple accounts, a user can create an identity with imap settings. When I switch identities, I call $RCMAIL->output->command('refresh'); But this line didn't refresh my folders list. Do you have any idea on how I can refresh my folders list ?
EDIT : I solved this by clearing the mailboxes cache and reloading the whole page in the callback function. Here's the code used:
$storage = $RCMAIL->get_storage();
$storage->clear_cache('mailboxes', true);
and in the callback function i used a simple reload:
location.reload();
Gracefully