Commit Graph
4232 Commits
Author SHA1 Message Date
Dat H. Pham 579f49ff30 Build viewer HTML documents in one tested builder; name plain-text pipeline 2026-10-08 17:12:36 +07:00
Dat H. Pham 0b5276f423 Extract named HTML transform configs for preview and attachments 2026-10-08 08:55:48 +07:00
Benoit TELLIERandClaude Opus 5.5 a9fbd227a8 TF-4894 fix(labels): open label picker on « Label as » click in reading pane
On desktop web, clicking « Label as » in the reading pane more menu
closed the menu without doing anything: the click was deliberately
ignored in favor of a hover submenu, which is not reliably shown.
Handle the click on every platform so the label chooser modal opens,
keeping the hover submenu as a shortcut.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 08:12:40 +07:00
dab246 1d6f505262 TF-4867 Wrap folder name errors on up to three lines in create and rename inputs 2026-10-08 07:10:16 +07:00
Benoit TELLIERandClaude Opus 5.5 288f961a9b TF-4867 Reject '.' in folder names client-side with an explicit localized message
The server rejects mailbox names containing '.' (hierarchy delimiter),
which surfaced as a raw English toast. Validate it client-side and
replace the generic 'special characters' error with a message listing
the forbidden characters.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-08 07:10:16 +07:00
Dat H. Pham e7f287473c [MCP Marionette] Use MCP to drive the UI (#4916) 2026-10-07 11:37:30 +07:00
Benoit TELLIERandClaude Opus 5.5 9b599f2c75 TF-4871 Only exclude first-level team Outbox/Drafts/Templates from rule targets
Team system folders are matched case-insensitively and only at first
level, so nested team folders with those names remain selectable.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 09:44:38 +07:00
Benoit TELLIERandClaude Opus 5.5 b70b532b90 TF-4871 Exclude Outbox, Drafts and Templates from rule move targets
Filing incoming mail into Outbox/Drafts/Templates is never meaningful
and risky (Outbox content may be picked up for sending).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 09:44:38 +07:00
dab246 aa93aceb1e TF-4864 Translate quote header date and time joiner for shipped locales 2026-10-07 09:42:31 +07:00
Benoit TELLIERandClaude Opus 5.5 e992445b96 TF-4864 Localize reply quote header date and keep sender name casing
- Format the quoted date with locale-aware skeletons (yMMMd + jm) joined
  by a localized 'at' (fr: 'à') instead of the hardcoded US pattern
- Use the 'wrote:' phrasing (fr: 'a écrit :')
- Stop re-casing the sender display name in quote headers

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 09:42:31 +07:00
Benoit TELLIERandClaude Opus 5.5 aa1e9bbb7a TF-4862 Do not re-apply an already expanded signature on web content load
When the loaded content already holds a top-level .tmail-signature,
restoreCollapsibleSignatureButton re-applied it, which consumed the one-shot
draft hash synchronization before the identity signature got inserted. The
baseline hash could then differ from the content and closing the unmodified
composer prompted to save.

Also drop the stray .hee-tmp gitlink accidentally committed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 09:40:26 +07:00
Benoit TELLIERandClaude Opus 5.5 6c613abf19 TF-4862 Resynchronize draft hash on inserted signature, not on removed signature button
Since TF-4034 the identity signature is inserted with allowCollapsed: false,
so the editor produces a top-level .tmail-signature without any
.tmail-signature-button. synchronizeInitEmailDraftHash still waited for the
button, so on web the baseline hash was never re-taken once the signature
landed and closing an unmodified composer always prompted to save.

Detect the top-level .tmail-signature instead, ignoring signatures nested in
quoted content.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 09:40:26 +07:00
Benoit TELLIERandClaude Opus 5.5 e4c6422443 TF-4862 Do not prompt to save draft when closing unmodified reply/forward composer
Reply, reply all and reply to list were never given a baseline draft
hash, so closing them always prompted.

On web, the identity signature is inserted asynchronously into the
editor, after the baseline hash has been computed. The re-baseline
done on signature insertion was limited to compose, so any
reply/forward/edit-as-new with a signature was seen as modified.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 09:40:26 +07:00
Benoit TELLIERandClaude Opus 5.5 20e4c575cd TF-4862 Init draft hash for edit-as-new with preselected identity on web
When the identity is restored from the email header, setupSelectedIdentity
returned early without calling onCompleteSetupComposer on web, leaving the
saved draft hash unset for editAsNewEmail.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 09:40:26 +07:00
Benoit TELLIERandClaude Opus 5.5 a8396a9ee0 TF-4862 Do not prompt to save draft when closing unmodified forward/edit-as-new composer
initEmailDraftHash only set a baseline hash for compose and editDraft,
leaving it null for forward and editAsNewEmail. Any close was therefore
considered a modification and triggered the save-to-drafts dialog.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 09:40:26 +07:00
Dat H. Pham fd1a80378f Translate vi, ru, fr, mn 2026-10-06 13:34:14 +07:00
dab246 f7e4e954b0 TF-4809 Part 3: Remove duplicate userOptInByDefault parsing in SentryConfigLinagoraEcosystem 2026-10-05 12:22:17 +07:00
dab246 e6e9ed633c TF-4809 Part 3: Add web Sentry fallback and denied consent 2026-10-05 12:22:17 +07:00
dab246 eec2fbab39 TF-4809 Part 3: Harden Sentry ecosystem consent handling 2026-10-05 12:22:17 +07:00
dab246 8e50fc0380 TF-4809 Part 3: Clarify Sentry reporting default 2026-10-05 12:16:55 +07:00
dab246 6aa8c4ef56 TF-4809 Part 3: Simplify Sentry config JSON serialization 2026-10-05 12:16:55 +07:00
dab246 6f3b757ef6 TF-4809 Part 3: Share Sentry ecosystem opt-in default with web 2026-10-05 12:16:55 +07:00
dab246 1e783fbc38 TF-4809 Part 3: Configure Sentry reporting default 2026-10-05 12:16:55 +07:00
dab246 68fbf7144c TF-4809 Part 2: Add Sentry reporting preference 2026-10-05 12:16:55 +07:00
Dat VuandDat H. Pham c0eb30d2d6 TF-4809 Part 1-C: Apply consent in iOS notification extension (#4836)
* TF-4809 Part C: Apply consent in iOS notification extension

* TF-4809 Part C: Apply consent in iOS notification extension

* TF-4809 Part C: Harden NSE consent persistence

* TF-4809 Part C: Fix duplicate Mockito mock generation

* TF-4809 Part C: Use rethrow for Sentry errors

* TF-4809 Part C: Fix analyzer warnings

* TF-4809 Move Sentry cleanup to session teardown

* TF-4809 Fix BaseController test isolation

* TF-4809 Add tests for consent reset on session cleanup

* TF-4809 Reset Sentry consent on session cleanup

---------

Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
2026-10-05 12:15:05 +07:00
dab246 65c31dfc2c TF-4809 Part B: Reuse Sentry for unchanged FCM config 2026-10-05 12:15:05 +07:00
dab246 e78120abb6 TF-4809 Part B: Harden Sentry FCM consent 2026-10-05 12:15:05 +07:00
dab246 fdda202292 TF-4809 Part B: Persist consent for FCM background 2026-10-05 12:15:05 +07:00
dab246 9f3665eb47 TF-4809 Part A: Gate Sentry SDK lifecycle by consent 2026-10-05 12:15:04 +07:00
Đặng Đạt d1990bcc9e 2509 Show the blocked-link toast in invite descriptions and HTML attachments
Addresses: 621394, 622055
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_621394
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_622055
2026-10-05 10:20:52 +07:00
Đặng Đạt 770bd30dfc 2509 Cover the noopener decision for links opened from the EML previewer
Addresses: 621393, 622054
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_621393
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_622054
2026-10-05 10:20:52 +07:00
Đặng Đạt aecb0fc1db 2509 Allow sms, webcal and geo links and warn when a link is refused
Addresses: 621394
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_621394
2026-10-05 10:20:52 +07:00
Đặng Đạt 0eaa08f236 2509 Gate every content-link launch through ExternalLinkPolicy only
Addresses: 621391, 621392
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_621391
https://ci.linagora.com/tddang/tmail-flutter/-/merge_requests/5#note_621392
2026-10-05 10:20:52 +07:00
Dang Dat f541de05de 2509 Route AppUtils.launchLink and ICS conference links through the scheme allow-list
AppUtils.launchLink was the one shared entry point for opening links
externally, but it launched any URL/scheme unguarded, including its own
Safari<17 branch which called window.open directly and skipped
url_launcher_web's own scheme block and noopener/noreferrer. Route both
paths through ExternalLinkPolicy (now also allowing mailto, since
launchLink already had legitimate mailto callers) and restore
noopener/noreferrer on the Safari branch.

The calendar invite's video-conference extension fields
(X-OPENPAAS-VIDEOCONFERENCE / X-GOOGLE-CONFERENCE) are attacker-controlled
and only checked for non-empty values before reaching the same launch
path via the "join" button; filter them through the same allow-list at
the source.
2026-10-05 10:20:52 +07:00
Dang Dat 72cdf9900d 2509 Restrict which links open externally from email content
Links inside the EML preview opened new windows/tabs with plain
window.open, with no noopener and no scheme check. Pass
noopener,noreferrer and only open http, https and mailto targets.

Add ExternalLinkPolicy (http/https/tel allow-list) and route the mobile
email WebView's external-navigation handler through it, refusing the
app's own custom schemes so a link in received content can no longer
relaunch another app or the app itself.
2026-10-05 10:20:52 +07:00
Dang Dat 96dd60b373 2509 Restrict openApp deep links to allow-listed hosts and show a toast when refused 2026-10-05 10:07:54 +07:00
Benoit TELLIERandClaude Opus 5.5 1b2d3d3329 Fix grammar in Profiles settings subtitle ('send an emails' -> 'send emails')
Closes #4934

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 09:42:55 +07:00
Benoit TELLIERandClaude Opus 5.5 1716a5e0f9 Use plural form for permanent-delete toast when a single message is deleted
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-03 07:02:29 +07:00
Benoit TELLIERandClaude Opus 5.5 3bfe47472c Fix grammar of permanent-delete toast messages
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-03 07:02:29 +07:00
Benoit TELLIERandClaude Opus 5.5 1892e5fa11 Fix 'has invited you in to a meeting' typo in English strings (#4931)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-03 06:28:28 +07:00
Dat Dang 71af403ff9 2509 Require https for the openApp deep link's JMAP and identity provider URLs (#4919) 2026-10-02 16:06:37 +07:00
Dat H. Pham 0ee894acfd Translate vi, ru, fr, mn 2026-10-02 14:26:36 +07:00
Dang Dat 90095166dd 2509 Strip bidi and control characters from attachment names 2026-10-02 12:32:16 +07:00
Dang Dat 6f0995c723 2509 Escape notification text and use private lock-screen visibility 2026-10-02 09:57:23 +07:00
Dang Dat f3f76878e7 2509 Never send credentials with WebFinger discovery requests 2026-10-01 17:06:29 +07:00
Dang Dat 9e4152639f 2509 Escape header fields in the EML preview and remove the unused PDF viewer
The EML / full-message preview and the print page build their header
as an HTML string. Subject, sender, recipients, date, attachment names
and the attachment link were inserted unescaped, so a crafted header
value became markup in a same-origin page.
DownloadManager.openDownloadedFileWeb loaded pdf.js/pdfobject from a
CDN and put the file name unescaped into a blob page. Nothing calls it.

PreviewEmlFileUtils and PrintUtils escape every text field at the sink.
Callers pass raw strings and no longer pre-escape them. The attachment
link is attribute-escaped and built with Uri, so file names survive the
round-trip. The inline-image alt and id attributes are attribute-escaped.
openDownloadedFileWeb, its CDN loaders and js_interop_stub.dart are
removed, and DownloadManager no longer takes DeviceInfoPlugin.
2026-10-01 15:49:46 +07:00
Đặng Đạt e327c1202e 2509 Try DNS-over-HTTPS before system DNS for JMAP discovery
Automatic server discovery takes the _jmap._tcp SRV target as the
login server. The plain-DNS client uses a predictable transaction id
and doesn't check that an answer matches the question, so on an
untrusted network a spoofed answer could send discovery, and then
login, to the wrong host. Public UDP and DoH also shared the same
priority, so which one ran first was undefined.

Lookup order is now public DoH -> system -> public UDP -> cloud.
System DNS stays second so VPN users whose _jmap record is only
visible to the internal resolver (#3976) still get discovered. Each
mode has its own priority level, so the order is deterministic, and a
test pins it.
2026-10-01 13:37:41 +07:00
dab246 ef210179c1 TF-4815 Prefer latest draft hash over route arguments in reconnect composer cache 2026-10-01 10:42:32 +07:00
dab246 8c56765395 TF-4815 Discard web composer snapshots on explicit logout 2026-10-01 10:42:32 +07:00
dab246 8ea16dd956 TF-4815 Keep reply headers and draft mailbox in restored web composer 2026-10-01 10:42:32 +07:00