Commit 55b5ecd2 authored by Charles Lindsay's avatar Charles Lindsay

Properly create special folders for other accounts

Closes: bgo #714103
parent 1b828556
......@@ -18,7 +18,22 @@ private class Geary.ImapEngine.OtherAccount : Geary.ImapEngine.GenericAccount {
else
type = local_folder.get_properties().attrs.get_special_folder_type();
return new OtherFolder(this, remote_account, local_account, local_folder, type);
switch (type) {
case SpecialFolderType.SENT:
return new GenericSentMailFolder(this, remote_account, local_account, local_folder,
type);
case SpecialFolderType.TRASH:
return new GenericTrashFolder(this, remote_account, local_account, local_folder,
type);
case SpecialFolderType.DRAFTS:
return new GenericDraftsFolder(this, remote_account, local_account, local_folder,
type);
default:
return new OtherFolder(this, remote_account, local_account, local_folder, type);
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment