Enable default mail app #25

Closed
opened 2026-07-01 03:29:17 +00:00 by JMR-dev · 0 comments
JMR-dev commented 2026-07-01 03:29:17 +00:00 (Migrated from github.com)

Context

The app can't yet handle mailto: links or be set as the default mail app. No mailto intent
filter exists in the manifest.

Scope

  • Add intent filters so the app handles mailto: (ACTION_VIEW / ACTION_SENDTO with the
    mailto scheme) and email SEND/SENDTO intents; open Compose prefilled from the URI.
  • Parse mailto: fully (multiple recipients, subject, body, cc/bcc) into the compose form.
  • "Default mail app": Android has no public RoleManager role for email (unlike SMS /
    Browser), so becoming the system default is version/OEM-dependent — hence "where
    supported." Where an association exists (e.g. some OEMs / Samsung, see #18), offer a
    prompt to set default; otherwise rely on mailto handling + the system "Open by default"
    screen.
  • Multi-account: choose which account to send from when launched via mailto.

Acceptance criteria

  • Tapping a mailto: link offers LibreMail and opens a prefilled compose; the app appears in
    the system default-apps list where the platform supports it.

Relevant files

  • AndroidManifest.xml (MainActivity intent filters), compose deep-link parsing,
    ui/navigation/Routes.kt

Dependencies

Relates to #18 (Samsung exposes an email default on some devices).

## Context The app can't yet handle `mailto:` links or be set as the default mail app. No mailto intent filter exists in the manifest. ## Scope - [ ] Add intent filters so the app handles `mailto:` (`ACTION_VIEW` / `ACTION_SENDTO` with the `mailto` scheme) and email `SEND`/`SENDTO` intents; open Compose prefilled from the URI. - [ ] Parse `mailto:` fully (multiple recipients, subject, body, cc/bcc) into the compose form. - [ ] "Default mail app": Android has **no public RoleManager role for email** (unlike SMS / Browser), so becoming the system default is version/OEM-dependent — hence "where supported." Where an association exists (e.g. some OEMs / Samsung, see #18), offer a prompt to set default; otherwise rely on mailto handling + the system "Open by default" screen. - [ ] Multi-account: choose which account to send from when launched via mailto. ## Acceptance criteria - Tapping a `mailto:` link offers LibreMail and opens a prefilled compose; the app appears in the system default-apps list where the platform supports it. ## Relevant files - `AndroidManifest.xml` (MainActivity intent filters), compose deep-link parsing, `ui/navigation/Routes.kt` ## Dependencies Relates to #18 (Samsung exposes an email default on some devices).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: JMR-dev/LibreMail#25