[geary/wip/create-folders-713492] Use required folder for saving sent mail



commit 78201c4584135d2b4b18b58e451d14569d5c05b6
Author: Charles Lindsay <chaz yorba org>
Date:   Wed Feb 5 18:27:54 2014 -0800

    Use required folder for saving sent mail

 src/engine/imap-db/outbox/smtp-outbox-folder.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/engine/imap-db/outbox/smtp-outbox-folder.vala 
b/src/engine/imap-db/outbox/smtp-outbox-folder.vala
index 2eca021..42a5b57 100644
--- a/src/engine/imap-db/outbox/smtp-outbox-folder.vala
+++ b/src/engine/imap-db/outbox/smtp-outbox-folder.vala
@@ -636,10 +636,10 @@ private class Geary.SmtpOutboxFolder : Geary.AbstractLocalFolder, Geary.FolderSu
     
     private async void save_sent_mail_async(Geary.RFC822.Message rfc822, Cancellable? cancellable)
         throws Error {
-        Geary.Folder? sent_mail = _account.get_special_folder(Geary.SpecialFolderType.SENT);
-        Geary.FolderSupport.Create? create = sent_mail as Geary.FolderSupport.Create;
+        Geary.FolderSupport.Create? create = (yield _account.get_required_special_folder_async(
+            Geary.SpecialFolderType.SENT, cancellable)) as Geary.FolderSupport.Create;
         if (create == null)
-            throw new EngineError.NOT_FOUND("Save sent mail enabled, but no sent mail folder");
+            throw new EngineError.NOT_FOUND("Save sent mail enabled, but no writable sent mail folder");
         
         bool open = false;
         try {


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