Closed Bug 1955594 Opened 1 year ago Closed 1 year ago

[EWS] Subfolders aren't deleted remotely when the parent folder is deleted

Categories

(Thunderbird :: Account Manager, defect)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: babolivier, Unassigned)

References

(Blocks 1 open bug)

Details

When we delete a folder that has a subfolder, we expect the subfolder to be deleted with it. But what Exchange actually does is move the folder one level higher in the hierarchy.

So we need to update the folder deletion code to also delete subfolders (since I cannot see a way to do a recursive deletion via the EWS API). Hopefully this can be as simple as making a SyncFolderHierarchy request with the EWS ID of the parent folder first, and then including all of the folder IDs in the response in the subsequent DeleteFolder request.

Turns out this isn't the case, and I was misled by a bug in the code I was testing.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.