mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-03 00:06:39 +00:00
859770b81455d944a8b69f104ac04f168dca9c87
When a proxy redirects the session request (an http to https upgrade, a trailing slash, another port), iOS and OkHttp follow it without the Authorization header. The server then answers 401 or, like Stalwart, an empty session, which the client reported as invalid credentials, so a restored account was evicted and its stored credentials deleted. The retry that was meant to catch this keyed on `response.redirected`, which React Native's fetch never sets. Session discovery now also detects a redirect by comparing the final `response.url` with the requested URL, and on a 401 or an empty session refetches the final URL with the header. Credentials only follow within the same host or its https upgrade, the rule `secureFetch` applies; a redirect elsewhere fails as a discovery error, which `loadAccount` turns into a `NetworkError`, so the stored account is kept.
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 a release APK build see .github/workflows/release-android.yml. For iOS builds and TestFlight distribution see docs/ios-release.md.
License
AGPL-3.0-only. See LICENSE.
Languages
TypeScript
96%
Kotlin
2.1%
JavaScript
0.9%
Swift
0.4%
HTML
0.3%
Other
0.2%