Change mail options
This commit is contained in:
@@ -30,6 +30,22 @@ try {
|
||||
exit;
|
||||
}
|
||||
|
||||
// 0b. Uitgeschakelde mappen opslaan
|
||||
if ($action === 'save_disabled_folders') {
|
||||
$input = file_get_contents('php://input');
|
||||
$data = json_decode($input, true);
|
||||
$folders = $data['disabled_folders'] ?? ($_POST['disabled_folders'] ?? []);
|
||||
if (is_string($folders)) {
|
||||
$folders = json_decode($folders, true) ?: [];
|
||||
}
|
||||
if (!is_array($folders)) {
|
||||
$folders = [];
|
||||
}
|
||||
$ok = microsoft_save_disabled_folders($userId, $folders);
|
||||
echo json_encode(['success' => $ok, 'disabled_folders' => $folders]);
|
||||
exit;
|
||||
}
|
||||
|
||||
// 1. Inbox of specifieke map berichten ophalen
|
||||
if ($action === 'get_folder_messages' || $action === 'get_inbox') {
|
||||
$folderId = trim($_GET['folder_id'] ?? ($_POST['folder_id'] ?? 'inbox'));
|
||||
|
||||
Reference in New Issue
Block a user