diff --git a/nx-webmail/README.md b/nx-webmail/README.md index d275212..b0d7e5a 100644 --- a/nx-webmail/README.md +++ b/nx-webmail/README.md @@ -30,7 +30,7 @@ Umbrel installation is most reliable when your app uses a prebuilt image from a - `git.weektab.org/nexus/nx-webmail:latest` 3. The workflow then pins `nx-webmail/docker-compose.yml` to `tag@sha256:digest` automatically. 4. Manual fallback: - docker buildx build --platform linux/amd64,linux/arm64 -t git.weektab.org/nexus/nx-webmail:1.0.4 --push . + docker buildx build --platform linux/amd64,linux/arm64 -t git.weektab.org/nexus/nx-webmail:1.0.5 --push . ## Umbrel app packaging @@ -55,7 +55,7 @@ This repository is prepared for Umbrel app-store usage. Notes: - Umbrel uses the `app_proxy` service in `docker-compose.yml`. - Internal app port is `3001`. -- `server` uses a prebuilt registry image (`git.weektab.org/nexus/nx-webmail:1.0.4`). +- `server` uses a prebuilt registry image (`git.weektab.org/nexus/nx-webmail:1.0.5`). - If your store prefix changes, update `id` in `umbrel-app.yml` and `APP_HOST` in `docker-compose.yml`. ## Notes diff --git a/nx-webmail/docker-compose.yml b/nx-webmail/docker-compose.yml index 54a3730..c68c865 100644 --- a/nx-webmail/docker-compose.yml +++ b/nx-webmail/docker-compose.yml @@ -7,7 +7,7 @@ services: APP_PORT: 3001 server: - image: git.weektab.org/nexus/nx-webmail:1.0.4@sha256:a5a57deade7005e775a8a6b370d2b3cb8fea2f1d370d65048f2bd580224636ed + image: git.weektab.org/nexus/nx-webmail:1.0.5@sha256:5bd160a20d844a2b4a74607423b951859eccee38cb6b47c2f4264640ac23f3eb init: true restart: on-failure stop_grace_period: 1m diff --git a/nx-webmail/src/components/Webmail.jsx b/nx-webmail/src/components/Webmail.jsx index d57e895..b24c2e7 100644 --- a/nx-webmail/src/components/Webmail.jsx +++ b/nx-webmail/src/components/Webmail.jsx @@ -569,20 +569,12 @@ export default function Webmail() { foldersMeta: normalized }); - if (skipInitialFetchIfCached && cachedDefaultEmails) { await fetchInbox(defaultFolder, auth, true, credOverride, { keepSelection: true, - silent: true, - syncOnly: true, + silent: Boolean(cachedDefaultEmails) || skipInitialFetchIfCached, + fetchAll: true, resetToFirstPage: true }); - } else { - await fetchInbox(defaultFolder, auth, true, credOverride, { - keepSelection: true, - silent: Boolean(cachedDefaultEmails), - resetToFirstPage: true - }); - } saveSession(credOverride, defaultFolder); upsertAccount(credOverride, defaultFolder); return true; @@ -1318,9 +1310,12 @@ export default function Webmail() { const handleManualRefresh = async () => { setIsRefreshingInbox(true); try { + const shouldFetchAll = !Boolean(activeFolderPaging?.loadedAll); await fetchInbox(activeFolder, authPayload, true, credentials, { keepSelection: true, - syncOnly: true + syncOnly: !shouldFetchAll, + fetchAll: shouldFetchAll, + forceRefresh: shouldFetchAll }); await fetchFolderSizes(authPayload); await fetchQuota(authPayload); diff --git a/nx-webmail/umbrel-app.yml b/nx-webmail/umbrel-app.yml index b79c50c..6801d3e 100644 --- a/nx-webmail/umbrel-app.yml +++ b/nx-webmail/umbrel-app.yml @@ -2,9 +2,9 @@ id: nx-webmail name: Webmail tagline: Self-hosted IMAP/SMTP webmail client -icon: logo.svg +icon: https://git.weektab.org/nexus/umbrel-apps/raw/branch/main/gallery/webmail/icon.png category: utilities -version: "1.0.4" +version: "1.0.5" port: 3001 description: >- Webmail is a lightweight, self-hosted webmail app for connecting to external @@ -17,7 +17,7 @@ repo: https://git.weektab.org/nexus/webmail support: https://git.weektab.org/nexus/webmail/issues gallery: [] releaseNotes: >- - Refined login visuals with rounded hero edges, modern typography, and updated styling. + Improved inbox synchronization to load complete mailbox data right after login. dependencies: [] path: "" defaultUsername: ""