[geary/wip/email-flag-refinement-redux: 12/14] Tweak FetchEmail::describe_state()
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/email-flag-refinement-redux: 12/14] Tweak FetchEmail::describe_state()
- Date: Thu, 14 Feb 2019 14:33:14 +0000 (UTC)
commit 04a8c95b881b3e88c5c0d7d24e4f8129d964d441
Author: Michael Gratton <mike vee net>
Date: Fri Feb 15 01:22:39 2019 +1100
Tweak FetchEmail::describe_state()
src/engine/imap-engine/replay-ops/imap-engine-fetch-email.vala | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/engine/imap-engine/replay-ops/imap-engine-fetch-email.vala
b/src/engine/imap-engine/replay-ops/imap-engine-fetch-email.vala
index d5e3ed95..e1a88844 100644
--- a/src/engine/imap-engine/replay-ops/imap-engine-fetch-email.vala
+++ b/src/engine/imap-engine/replay-ops/imap-engine-fetch-email.vala
@@ -62,6 +62,7 @@ private class Geary.ImapEngine.FetchEmail : Geary.ImapEngine.SendReplayOperation
// If returned in full, done
if (email.fields.fulfills(required_fields)) {
this.email = email;
+ this.remaining_fields = Email.Field.NONE;
return ReplayOperation.Status.COMPLETED;
}
@@ -130,7 +131,12 @@ private class Geary.ImapEngine.FetchEmail : Geary.ImapEngine.SendReplayOperation
}
public override string describe_state() {
- return "id=%s required_fields=%Xh remaining_fields=%Xh flags=%Xh".printf(id.to_string(),
- required_fields, remaining_fields, flags);
+ return "id=%s required_fields=%Xh remaining_fields=%Xh flags=%Xh has_email=%s".printf(
+ this.id.to_string(),
+ this.required_fields,
+ this.remaining_fields,
+ this.flags,
+ (this.email == null).to_string()
+ );
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]