[geary] Properly create special folders for other accounts



commit 55b5ecd2362ed269c91961c8b55dabaa18842598
Author: Charles Lindsay <chaz yorba org>
Date:   Wed Jan 15 15:40:06 2014 -0800

    Properly create special folders for other accounts
    
    Closes: bgo #714103

 .../other/imap-engine-other-account.vala           |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/src/engine/imap-engine/other/imap-engine-other-account.vala 
b/src/engine/imap-engine/other/imap-engine-other-account.vala
index 52d1f25..419a432 100644
--- a/src/engine/imap-engine/other/imap-engine-other-account.vala
+++ b/src/engine/imap-engine/other/imap-engine-other-account.vala
@@ -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);
+        }
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]