diff --git a/README.md b/README.md index 0998f36..a4cd344 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ A desktop-style mail client concept with the **Eternity Daylight** and **Wastela ## Desktop app -The Electron app runs in its own window. With Node.js installed, run `npm install` and then `npm start`. To package it on Windows, run `npm run dist:win`; the installer and portable `.exe` are written to `release/`. To package on Linux, run `npm install` and `npm run dist:linux` on a Linux machine; this produces AppImage and Debian packages in `release/`. +The Electron app runs in its own window. With Node.js installed, run `npm install` and then `npm start`. Open **Mail account settings** to connect an IMAP/SMTP account. The app uses required STARTTLS for IMAP port 143 and SMTP port 587 and stores the password encrypted through the operating system credential store. To package it on Windows, run `npm run dist:win`; the installer and portable `.exe` are written to `release/`. To package on Linux, run `npm install` and `npm run dist:linux` on a Linux machine; this produces AppImage and Debian packages in `release/`. The `.github/workflows/desktop-build.yml` workflow builds both Windows and Linux artifacts on their native GitHub-hosted runners when manually started from the Actions tab. @@ -20,4 +20,4 @@ On Windows, `py -m http.server 8000` is also available on many Python installati ## Current scope -This build is a local UI prototype with sample messages and in-memory interactions. It does not connect to IMAP/SMTP, sync a real address book or calendar, or persist edits to a server. Those integrations need an account setup flow and a secure mail/calendar backend. Avoid entering real credentials into this prototype. +Mail supports multiple IMAP/SMTP accounts, switching between them, and saving message attachments. Account credentials are kept in the OS-encrypted credential store. Contacts and calendar entries can be added, edited, and removed; they are saved locally on this device and do not sync to an address book or calendar server. Your display name is also saved locally and appears in the greeting. diff --git a/account-ui.js b/account-ui.js new file mode 100644 index 0000000..fe24b16 --- /dev/null +++ b/account-ui.js @@ -0,0 +1,22 @@ +async function openAccountManager(){ + const root=$('#modal-root'); + try{ + const data=await window.daybreakMail.listAccounts(); + const accounts=data.accounts||[]; + const rows=accounts.map(account=>`
Try another folder or search.
${esc(p)}
`).join('')}${esc(m.signature||m.sender)}
${m.attachment?``:''}Try another folder or search.
${esc(p)}
`).join('')}${esc(m.signature||m.sender)}
${(m.attachments?.length ? m.attachments : m.attachment ? [{filename:m.attachment,size:m.size}] : []).map(file=>``).join('')}Select a message to read it here.