all repos — emessage @ b2a9f53d5101a6a711655e59e523e722055baa6a

The EMessage email client

full refresh
Robert Ismo me@robertismo.com
Fri, 26 Jun 2026 13:49:29 -0500
commit

b2a9f53d5101a6a711655e59e523e722055baa6a

parent

46bc2f2829df25e7eb873da501a21a12728060fa

M app.goapp.go

@@ -22,6 +22,7 @@ ctx context.Context

Config AppConfig DB *gorm.DB UserContact Contact + Updater *selfupdate.Updater } func NewApp(config AppConfig) *App {

@@ -75,6 +76,7 @@ OnFinally: func() {

app.Log("Finished updating.").Stdout().StatusLine() }, } + app.Updater = updater go updater.Update() go func() { ticker := time.NewTicker(1 * time.Hour)
M frontend/src/lib/wailsjs/go/main/App.d.tsfrontend/src/lib/wailsjs/go/main/App.d.ts

@@ -6,6 +6,8 @@ export function EnsureAppMailboxExists():Promise<void>;

export function EstablishMailConnections():Promise<void>; +export function FullRefresh():Promise<void>; + export function GetActiveMailEmails():Promise<Array<string>>; export function GetAllContactsSorted():Promise<Array<main.Contact>>;
M frontend/src/lib/wailsjs/go/main/App.jsfrontend/src/lib/wailsjs/go/main/App.js

@@ -10,6 +10,10 @@ export function EstablishMailConnections() {

return window['go']['main']['App']['EstablishMailConnections'](); } +export function FullRefresh() { + return window['go']['main']['App']['FullRefresh'](); +} + export function GetActiveMailEmails() { return window['go']['main']['App']['GetActiveMailEmails'](); }
M frontend/src/routes/+layout.sveltefrontend/src/routes/+layout.svelte

@@ -14,6 +14,7 @@ NewConversation,

GetAllContactsSorted, GetAllConversations, EstablishMailConnections, + FullRefresh, } from "$lib/wailsjs/go/main/App"; import { EventsOn } from "$lib/wailsjs/runtime/runtime"; import { global } from "$lib/global.svelte.js";

@@ -56,7 +57,7 @@ <div class="flex w-full h-full">

<nav class="bg-sidebar w-1/4 h-full"> <section class="flex flex-col gap-2 p-2"> <div class="flex justify-between"> - <button class="text-xs" onclick={EstablishMailConnections}>{version}</button> + <button class="text-xs" onclick={FullRefresh}>{version}</button> <div class="flex gap-4"> <ControlButton icon={settingsIcon} onclick={() => goto("/settings")} />
M mailaccount.gomailaccount.go

@@ -105,6 +105,11 @@ delete(mailConnections, address)

} } +func (app *App) FullRefresh() { + app.EstablishMailConnections() + app.Updater.Update() +} + func (app *App) EstablishMailConnections() { ImapSyncMutex.Lock() defer ImapSyncMutex.Unlock()
M releasesreleases

@@ -1,3 +1,4 @@

+prerelease.9 prerelease.8 prerelease.7 prerelease.6