Commit 75d35ab7 authored by Michael Gratton's avatar Michael Gratton 🤞 Committed by Michael Gratton

Tweak FetchEmail::describe_state()

parent c8fa350e
......@@ -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()
);
}
}
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