Update folder-hint.ts

This commit is contained in:
rustmailer
2026-06-28 11:39:44 +08:00
parent 42ce36a439
commit 4996dac1ea
+1
View File
@@ -114,6 +114,7 @@ export interface FolderHint {
export async function extractFolderHint(file: File): Promise<FolderHint | null> {
const ext = file.name.split('.').pop()?.toLowerCase();
const isMbox = ext === 'mbox';
const isPst = ext === 'pst';
// Read first 64 KB — enough for headers of the first message
const chunk = new Uint8Array(await file.slice(0, HEADER_READ_BYTES).arrayBuffer());