TF-825 Download email as EML file (#2854)
This commit is contained in:
@@ -34,7 +34,8 @@ extension EmailCacheExtension on EmailCache {
|
||||
: null,
|
||||
headerCalendarEvent: headerCalendarEvent != null
|
||||
? Map.fromIterables(headerCalendarEvent!.keys.map((value) => IndividualHeaderIdentifier(value)), headerCalendarEvent!.values)
|
||||
: null
|
||||
: null,
|
||||
blobId: blobId != null ? Id(blobId!) : null,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ extension EmailExtension on Email {
|
||||
replyTo: replyTo?.map((emailAddress) => emailAddress.toEmailAddressHiveCache()).toList(),
|
||||
mailboxIds: mailboxIds?.toMapString(),
|
||||
headerCalendarEvent: headerCalendarEvent?.toMapString(),
|
||||
blobId: blobId?.value,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,6 +54,9 @@ class EmailCache extends HiveObject with EquatableMixin {
|
||||
@HiveField(14)
|
||||
Map<String, String?>? headerCalendarEvent;
|
||||
|
||||
@HiveField(15)
|
||||
final String? blobId;
|
||||
|
||||
EmailCache(
|
||||
this.id,
|
||||
{
|
||||
@@ -71,6 +74,7 @@ class EmailCache extends HiveObject with EquatableMixin {
|
||||
this.replyTo,
|
||||
this.mailboxIds,
|
||||
this.headerCalendarEvent,
|
||||
this.blobId,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -91,5 +95,6 @@ class EmailCache extends HiveObject with EquatableMixin {
|
||||
hasAttachment,
|
||||
mailboxIds,
|
||||
headerCalendarEvent,
|
||||
blobId,
|
||||
];
|
||||
}
|
||||
@@ -8,6 +8,7 @@ class ThreadConstants {
|
||||
static final defaultLimit = UnsignedInt(maxCountEmails);
|
||||
static final propertiesDefault = Properties({
|
||||
EmailProperty.id,
|
||||
EmailProperty.blobId,
|
||||
EmailProperty.subject,
|
||||
EmailProperty.from,
|
||||
EmailProperty.to,
|
||||
@@ -29,6 +30,7 @@ class ThreadConstants {
|
||||
|
||||
static final propertiesQuickSearch = Properties({
|
||||
EmailProperty.id,
|
||||
EmailProperty.blobId,
|
||||
EmailProperty.subject,
|
||||
EmailProperty.from,
|
||||
EmailProperty.to,
|
||||
@@ -53,6 +55,7 @@ class ThreadConstants {
|
||||
|
||||
static final propertiesGetDetailedEmail = Properties({
|
||||
EmailProperty.id,
|
||||
EmailProperty.blobId,
|
||||
EmailProperty.subject,
|
||||
EmailProperty.from,
|
||||
EmailProperty.to,
|
||||
@@ -74,6 +77,7 @@ class ThreadConstants {
|
||||
|
||||
static final propertiesCalendarEvent = Properties({
|
||||
EmailProperty.id,
|
||||
EmailProperty.blobId,
|
||||
EmailProperty.subject,
|
||||
EmailProperty.from,
|
||||
EmailProperty.to,
|
||||
|
||||
Reference in New Issue
Block a user