TF-3416 Implement preview EML attachment

This commit is contained in:
dab246
2025-01-13 10:02:50 +07:00
committed by Dat H. Pham
parent 7cbdfddb6d
commit d304083b2e
54 changed files with 1489 additions and 148 deletions
+10
View File
@@ -64,6 +64,16 @@ extension EmailExtension on Email {
return '';
}
String getSentAt({required String newLocale, String? pattern}) {
if (sentAt != null) {
return sentAt!.formatDateToLocal(
pattern: pattern ?? sentAt!.value.toLocal().toPattern(),
locale: newLocale
);
}
return '';
}
Set<String> getRecipientEmailAddressList() {
final listEmailAddress = <String>{};
final listToAddress = to.getListAddress() ?? [];