mirror of
https://github.com/bulwarkmail/native.git
synced 2026-10-31 08:06:36 +00:00
Most apps start an email with `ACTION_SENDTO` and a `mailto:` URI. The manifest offered the app for it, but React Native's Linking only forwards VIEW intents, so the app opened on the inbox instead of the composer. MainActivity now rewrites a `SENDTO mailto:` intent into the equivalent `VIEW mailto:` link before React Native sees it, on a cold start and when the running app receives it. The EXTRA_EMAIL, EXTRA_CC, EXTRA_BCC, EXTRA_SUBJECT and EXTRA_TEXT extras are folded into the link's query. Bcc recipients of a mailto link now reach the composer too; they were dropped for VIEW links as well.