* TF-5022 T-04 Keep delegated mail out of offline storage and delete local data when access ends
* TF-5022 Extend AccountCacheClient in MemoryAccountCacheClient and drop unused imports in delegation tests
* TF-5022 Read CacheAccountKey from the last username part, keep EndedDelegationStoreImpl content rows when file cleanup fails, match notification emailId exactly and remove delegated composer snapshots in logoutToSignInNewAccount
* TF-5022 Guard sessionStorage access in EndedDelegationStoreImpl so blocked web storage no longer aborts logout or delegated cleanup
* test(delegation): report unsent mail lost in a partially failed cleanup
* TF-5022 Address review on cleanup counts, cache key order, Hive key scans and composer client lookup
* test(delegation): check sign-in screens pass session origin to dashboard
* test(caching): cover empty user, empty account and mismatched keys
* test(delegation): cover read failure, nothing to delete and delegated writes
* test(delegation): share no-cleanup asserts and count lost only after delete
---------
Co-authored-by: Dang Dat <tddang@linagora.com>
Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
* TF-5022 Add ShownAccountCapabilities.canOpenSettings, shownAccountCapabilitiesProvider and ActiveAccountReader.shownAccountCapabilities
* TF-5022 Refuse goToSettings and goToVacationSetting and add SettingsRouteGuard on /settings while a delegated account is shown
* TF-5022 Hide Manage account, the mobile mailbox bar avatar and the vacation setting link while a delegated account is shown, extract DashboardNavigationBar and CozyProfileSettingIcon
* TF-5022 Point the dashboard reader scan comments at T-02.5 for the composer, identities and labels
* TF-5022 Name ShownAccountCapabilities.canOpenSettings in ADR-0114 Settings and keep mobile Sign out reachable in T-09
* TF-5022 Extract DashboardVacationBanner from the vacation banners of the dashboard, email, thread and thread detail views
* TF-5022 Keep mobile Sign out hidden with Settings while a delegated account is shown in ADR-0114
* TF-5022 Add ShownAccountCapabilities.canCreateFilter and route the rule filter entries through it instead of ActiveAccountReader.isDelegatedAccountShown
* TF-5022 Report the folder and email list loads of a switch attempt to ShownAccountLoadTracker and reload the shown account through watchShownReload
* TF-5022 Implement AccountSwitchView in DashboardAccountSwitchView with ShownMailboxSelection, the shown account input blocker and the closing of open popups
* TF-5022 Close every route above the dashboard in DashboardAccountSwitchView.blockInput, count the mobile composer route in DashboardShownMailboxSelection.hasOpenComposer, and test the email list report order with the real MailboxController and ThreadController
* TF-5022 Gate T-02.6 on T-06 delegationEnabledProvider in ADR-0114
* TF-5022 Test that a switch closes menu submenus and drops mail list shortcuts
* TF-5022 Keep key presses from the dashboard while a switch blocks its input
* TF-5022 Count a load as failed in ShownAccountStateSubscription when onDone throws
* TF-5022 Rename ShownMailboxSelection to AccountSwitchDashboard with resetForNewAccount and GetXAccountSwitchDashboard
---------
Co-authored-by: Dat H. Pham <dphamhoang@linagora.com>
Sending a reopened draft before its body has loaded sent an empty mail
and deleted the draft. Block send while the email content is still
loading or the editor is not ready, and tell the user to wait.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
pdfrx supports a PasswordProvider but TwakePdfPreviewer does not expose
it, so encrypted PDFs failed with "No password supplied by
PasswordProvider". Render the PDF through a password-aware previewer
that reuses the upstream building blocks, prompt for the password with
retry and a localized error on wrong password, and show a localized
message (download stays available) when the prompt is cancelled.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The unsubscribe confirmation was built from the localized prefix, the
sender name and a hard-coded ' ?', yielding 'from Emma ?' in every
language. The message now carries a {senderName} placeholder; the sender
name is still rendered in bold by splitting the localized text around it.
Closes#4946
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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>
- 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>
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.
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.
UnsignedInt.value is typed num, which broke compilation of quota
extensions. Accept num and normalize to an integer byte count.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Quota sizes in storage settings were formatted with the filesize package,
which always uses English units and a decimal point. Format them with the
current locale's decimal separator and French byte units (o, Ko, Mo, Go...),
and pluralize 'utilisés' in the French translation.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>