mirror of
https://github.com/bulwarkmail/webmail.git
synced 2026-11-04 16:14:07 +00:00
The import dialog in the desktop app can now find Thunderbird profiles and Outlook PST files, show what it found and import what the user confirms. Browsers behave as before. - The bridge's `localImport` gives opaque handles and range URLs. The shell asks natively before it looks, before it reads and before it goes on after a restart. - `lib/mail-import` gets a Maildir source and a per-file `folder`, so Thunderbird's `.sbd` tree maps onto the account's folders. The PST worker reads through a synchronous range XHR when there is no Blob. - What was imported is remembered by Message-ID and size per folder, because compacting a folder changes its checkpoint key and Email/import doesn't dedupe. It runs from the dialog and on a resume. - The job's record lives in IndexedDB, since Chromium writes localStorage too late to survive a kill. Windows wait for the job's lock, so one takes over when another goes. - The desktop dialog says how long an import takes at the upload limit, warns when Thunderbird is running, and turns down .ost files with the reason. The engine used to be able to lose an import while offline: uploadBlob kept the file on this device under a stand-in id and reported success. It now passes `noHold`, Email/import is network only, an offline spell pauses without using up a message's tries, and a device-only client stops at once. The same fix applies to imports in the browser.