(mime: string)
| 98 | |
| 99 | const mimeFrom = (contentType: string) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? "" |
| 100 | const isImageAttachment = (mime: string) => |
| 101 | mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet" |
| 102 | const isTextualMime = (mime: string) => |
| 103 | !mime || |
| 104 | mime.startsWith("text/") || |