[geary/wip/save-sent-713263] Make use of setting
- From: Charles Lindsay <clindsay src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/save-sent-713263] Make use of setting
- Date: Sat, 18 Jan 2014 00:25:13 +0000 (UTC)
commit f92722d674c7993ca8d8e916c4eb60181acc0af2
Author: Charles Lindsay <chaz yorba org>
Date: Fri Jan 17 11:54:10 2014 -0800
Make use of setting
.../imap-engine/imap-engine-generic-account.vala | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/engine/imap-engine/imap-engine-generic-account.vala
b/src/engine/imap-engine/imap-engine-generic-account.vala
index 096961e..5b6bd9f 100644
--- a/src/engine/imap-engine/imap-engine-generic-account.vala
+++ b/src/engine/imap-engine/imap-engine-generic-account.vala
@@ -551,7 +551,8 @@ private abstract class Geary.ImapEngine.GenericAccount : Geary.AbstractAccount {
private async void handle_sent_email_async(Geary.RFC822.Message rfc822, Cancellable? cancellable)
throws Error {
- // TODO: check account option, simply return
+ if (!allow_save_sent_mail || !information.save_sent_mail)
+ return;
Geary.Folder? sent_mail = get_special_folder(Geary.SpecialFolderType.SENT);
Geary.FolderSupport.Create? create = sent_mail as Geary.FolderSupport.Create;
@@ -563,7 +564,7 @@ private abstract class Geary.ImapEngine.GenericAccount : Geary.AbstractAccount {
yield create.open_async(Geary.Folder.OpenFlags.FAST_OPEN, cancellable);
open = true;
- yield create.create_email_async(rfc822, null, new DateTime.now_local() /* TODO: is that correct?
*/,
+ yield create.create_email_async(rfc822, null, new DateTime.now_local(),
null, cancellable);
yield create.close_async(cancellable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]