mirror of
https://github.com/bulwarkmail/native.git
synced 2026-10-31 16:06:32 +00:00
217bb59d573af6961035fabc7113fa4f5041d6ba
ContactsProvider soft-deletes every raw contact and group of a sync account, also one that never reached the server (DELETED=1, SOURCE_ID NULL). When a contact or group was created and deleted on the phone before a run claimed it, no upload phase took the row: without an identity or a pending create it belongs to no JMAP account, and the claim step skipped deleted rows. The row stayed for good, and the upload-only check and the teardown counted it as a waiting change: every upload sync the providers schedule became a full run, and turning sync off or signing out always asked about a change that would be lost. The claim step now hands such a row to the planner, whose plan for it is a purge, and `hasLocalWork` and `countPending` leave out deleted rows that have neither an identity nor a pending create. Nothing is uploaded for them. Calendar has no such gap: CalendarProvider hard-deletes an app-deleted event without `_SYNC_ID`, and a claimed event carries `~pending/<uid>`, so it is soft-deleted with its pending create and destroyed by uid as before.
Bulwark Mobile
Beta - work in progress. Many features are unfinished or rough. Expect bugs, missing functionality, and breaking changes between releases. Do not rely on this for primary email yet.
React Native (Expo SDK 54) client for Bulwark Webmail - a JMAP-based mail, calendar, and contacts app.
What works today
- Sign in to any JMAP server (e.g. Stalwart)
- Multiple accounts
- Email list, threads, compose
- Calendar (basic)
- Contacts (basic)
- Push notifications via the Bulwark relay - FCM by default, or UnifiedPush (e.g. ntfy) for devices without Google Play services
- In-app sideload updates from GitHub Releases
What's missing or rough
- iOS builds, but push notifications and client certificates are Android-only so far
- S/MIME, plugins, themes - UI stubs only (filters & rules, the vacation responder and file storage are real implementations)
- Calendar editing is partial; contacts editing is basic
- No Play Store distribution yet (sideload APK from Releases); iOS ships via TestFlight
Run locally
npm install
npx expo start
Then press a for Android, i for iOS, or scan the QR with Expo Go.
For release APK builds and signing see docs/android-release.md. For iOS builds and TestFlight distribution see docs/ios-release.md.
License
AGPL-3.0-only. See LICENSE.
Languages
TypeScript
95.9%
Kotlin
2.1%
JavaScript
0.9%
Swift
0.4%
HTML
0.4%
Other
0.2%