TF-657 Add headers and keywords property when get email content

This commit is contained in:
dab246
2022-10-19 16:21:15 +07:00
committed by Dat H. Pham
parent 18b3f61f70
commit 02789d527f
7 changed files with 63 additions and 16 deletions
@@ -13,8 +13,14 @@ extension EmailExtension on Email {
bool get hasStarred => keywords?.containsKey(KeyWordIdentifier.emailFlagged) == true;
bool get hasMdnSent => keywords?.containsKey(KeyWordIdentifier.mdnSent) == true;
bool get withAttachments => hasAttachment == true;
bool get needShowNotificationMessageReadReceipt {
return !hasMdnSent && headers.readReceiptHasBeenRequested;
}
Set<String> getRecipientEmailAddressList() {
final listEmailAddress = Set<String>();
final listToAddress = to.getListAddress() ?? [];