TF-2602 Set charset for attachment with mimeType=text/plain when sent email on mobile

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2024-02-23 11:57:54 +07:00
committed by Dat H. Pham
parent b5d8776af9
commit 514bc578ec
8 changed files with 70 additions and 26 deletions
@@ -11,7 +11,7 @@ extension AttachmentExtension on Attachment {
name: name,
type: type,
cid: cid,
charset: charset,
charset: charset ?? this.charset,
disposition: disposition?.name ?? ContentDisposition.attachment.name);
Attachment toAttachmentWithDisposition({
@@ -25,7 +25,8 @@ extension AttachmentExtension on Attachment {
name: name,
type: type,
cid: cid ?? this.cid,
disposition: disposition ?? this.disposition
disposition: disposition ?? this.disposition,
charset: charset
);
}
@@ -9,5 +9,6 @@ extension EmailBodyPartExtension on EmailBodyPart {
name: name,
type: type,
cid: cid,
charset: charset,
disposition: disposition.toContentDisposition());
}