TF-2510 Validate outside & inline attachment
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -27,4 +27,10 @@ extension AttachmentExtension on Attachment {
|
||||
disposition: disposition ?? this.disposition
|
||||
);
|
||||
}
|
||||
|
||||
bool isOutsideAttachment(List<Attachment> htmlBodyAttachments) {
|
||||
return (isDispositionAttachmentNoCID() || !isDispositionInlined()) &&
|
||||
!isApplicationRTFInlined() &&
|
||||
!htmlBodyAttachments.include(this);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user