github karatektus/pl_mail v0.5.0

42 minutes ago

Image: ghcr.io/karatektus/pl_mail:0.5.0

plMail for Android has caught up with the web, with calendar, tasks and contacts of its own. On the web, the panes can be arranged as you like and saved as workspaces, each with its own accounts and sidebar, and tasks sit beside your mail, synced with a CalDAV server or Microsoft To Do. A message can be translated, filters can test any header, long conversations fold their middle, and the interface is available in Japanese. Gmail imports, Microsoft accounts behind a reverse proxy and a good number of mails that did not look right are fixed.

plMail for Android has caught up with the web. The app has been updated alongside this release and now supports everything plMail does in the browser. Calendar, tasks and contacts have views of their own in the app, and each can have its own icon on the home screen beside the mail. Attaching from and saving to your connections, such as Nextcloud or Paperless, works in the app too, and so do the AI features: writing help, summaries and translations. It is a paid app on Google Play, for now the main way this project supports itself, and stays free on GitHub.

Arrange the panes yourself. The mail list, the open message, the calendar, contacts and tasks can now sit side by side or above and below each other, in any order. Every pane has a ⋯ menu to split it, show something else in its place, move it, put it at full width or close it, and the same moves are on the keyboard (⌥ + arrows, ⌥⇧ + arrows to move). Save arrangements as workspaces, switch between them from the top bar, start one from eight shapes in the Layout menu, or rearrange one in edit mode by dragging panes. A workspace can show up to four calendars, each on its own view. Workspaces follow your account; where you dragged the dividers stays with each device. On a phone the panes become tabs. Your first workspace is the layout you had, so nothing moves on the day you update. See Workspaces. #755.

The calendar, contacts and tasks buttons in the top bar are gone, with Settings → Calendar behaviour, the contacts button's steps and the Reading pane setting: the pane menu and your workspaces do what they did. The coloured dot on the calendar button for what is still ahead today went with it; Happening soon in the top bar still shows the next thing. No schema change; the old settings are read once to build your first workspace.

Tasks, beside your mail. A checklist icon in the top bar opens your tasks next to the mail, with or without the calendar. Add one by typing and pressing Enter, tick it off in the list, and open it for notes, a due date, steps, a repeat, a reminder and files. My Day fills itself with what is due, starts or reminds you today. Lists can also sync two ways with a CalDAV server such as Nextcloud Tasks, or with Microsoft To Do on a connected Microsoft account, which gets a Tasks switch of its own, keeping whatever other apps put on a task. With the To Do apps retiring in June 2027, a synced list's tasks can be transferred to a local list in one go, leaving the server untouched. See Tasks. #75.

Migration: adds the tables task_list, task, task_alert_delivery and task_attachment, all empty, and account.tasks_enabled, off for every existing account. Files go in a new folder of the attachments store, on the volume it already has, so nothing changes in the deployment. For To Do on Microsoft accounts, add the Tasks.ReadWrite delegated permission to the app registration — see Microsoft. Without it, mail, calendars and contacts work as before and To Do is not offered. The permission is asked for only when an account's Tasks switch is on, and the switch starts off, so the upgrade itself changes no sign-in. In a Microsoft 365 organisation where only administrators approve apps, switching Tasks on for an account is refused at sign-in, mail included, until an administrator approves the new permission: Microsoft Entra admin centre → Enterprise applications → plMail → Permissions → Grant admin consent. Do it before switching Tasks on for an account there. Personal Microsoft accounts are not affected.

The interface is available in Japanese. Choose 日本語 during setup or under Settings → General → Language. Every catalogue is translated — sign-in, validation messages and the emoji picker's search included — and the language uses a 24-hour clock unless you chose another. #803, by @imenihs.

A message can be translated into your language. Where an administrator has switched translation on in Admin → AI, Translate in a message's ⋮ menu has the writing model translate it into the language plMail is in, or the one chosen under Settings → Assistant → Translate into, which lists far more languages than plMail has an interface in. The translation takes the place of the message on a sheet tagged AI translation, in the assistant's violet, and a switch under the sender reads Original · German and English · AI; one click on either half shows that one. The model names the message's language as it translates, and a message already in the reader's language is left as it is, without a translation. It is kept, so the message opens translated next time at no cost, and the sheet says when the message has changed since. Only the message's own text is sent, without the earlier mail it quotes, and replies and forwards quote the original. Off by default, and nothing is translated until somebody asks.

Migration: ai_settings gains translation_enabled (off) and prompt_translation, the user table ai_translation_off and ai_translate_into, and a message_translation table keeps the translations and the language each message was written in. #713, by @swell-d.

Go through unread mail without it disappearing as you open it. Lists that can be narrowed to unread mail have a Show unread button in their toolbar, so the filter no longer needs a badge to click. And Settings → Reading & writing → Reading → Marking as read decides when opening a message marks it read: at once, as before, after it has been open for a few seconds, or never. No schema change. #901, requested by @DiegoTheWolf.

Security hardening, from the reports filed under #264 and after.

  • STARTTLS is required for SMTP accounts set to STARTTLS: a server, or someone in between, that does not offer it now fails the send instead of receiving the password in clear text.
  • The connection test and the account form only reuse a stored password for the servers it was saved for. Changing a host, port or encryption asks for the password again.
  • "Single sign-on only" can no longer be switched off from the web, by unticking it, clearing the provider or restoring a backup. bin/console app:sso:allow-password-login is the way, as documented.
  • Exporting or applying a configuration backup needs a sign-in in this session, not a remembered one, and each is logged.
  • A sender-written Authentication-Results header no longer silences the "name does not match the address" warning; only the account's receiving server's results count.
  • The web server's and hub's state directories are no longer left readable by every user on the host when bind-mounted.

Move to a folder works on mail in the bin from a search result. It showed "Moved" and left the mail in the bin. #486.

A reply to catch-all mail comes from the address it was sent to, on Purelymail and Soverin too. These providers deliver catch-all mail to the mailbox under its own address and write that into Delivered-To, so plMail answered from the primary address. A delivery header that names the mailbox itself no longer counts as the catch-all address; the original recipient is read from X-Pm-Original-To, X-Original-To or a Received hop, and otherwise from To and Cc. #631.

iCloud calendars show the events made on iCloud, and iCloud contacts sync. An iCloud calendar connected over CalDAV took events made in plMail, but never showed the ones made on iCloud: it looked synced, with no error, and stayed empty. iCloud address books failed with "unexpected response (400)". plMail asked iCloud for those events and contacts by their full URLs, and iCloud only answers to the path. It now asks by path, and a request that returns none of what it asked for shows as a sync error instead of an empty calendar. #637, reported and diagnosed by @Kawadian.

Migration: iCloud calendars and address books forget their sync position, so their next sync reads them in full once and brings in the events that were missed.

A count on plMail's icon in the browser tab. Switch on Settings → Notifications → Browser tab icon → Show a count and a number is drawn in the bottom right corner of the tab icon, black with a thin white outline, so a pinned tab shows it too, as in Gmail. By default it counts new mail in every account group and every workspace; it can count unread mail instead, one account group's Inbox, or only the workspace on screen. It keeps up while the tab is in the background, and the "(3)" in the tab title now does as well for anybody with it on. Off by default. No schema change. #662, requested by @llaumgui.

Signing in with a second factor no longer lands on the server's internal address. Behind a reverse proxy that forwards the internal address as the host (Authentik, for one), the code form redirected there. Every redirect after signing in is now a path on the address the browser is already on. #669.

Accounts can have a nickname, and the sidebar's account dots can be switched off. Give an account a name such as "Alerts" or "Personal" with Rename on its row in Settings → Accounts, and plMail shows it instead of the address in the sidebar, the account lists, a message row's corner, the filter and label forms, and the Android and iOS apps. Settings still shows the address under it. This works on every account, Gmail and Outlook ones included. Account dots in Settings → General → Layout & controls → Sidebar switches off the colour dots beside the accounts in the sidebar; the corner on message rows keeps its own switch under Message list. An account's address can no longer be changed after it is added: changing it used to rename nothing, since the account went on showing and sending as the address it was added with. Suggested by @wbilger in #673; the address part fixes #666, reported by @arnovdk.

A label renamed in Gmail, an Outlook category renamed in Outlook, or a mailbox renamed on a JMAP server is renamed in plMail too. It used to come back as a second label under the new name, with the old one left beside it. The sync now finds a label by the id the server gave it, and goes by name only for a label the account has never had. A label on several accounts that is renamed on one of them is split off for that account, as a rename under that account in plMail does. Labels already doubled this way are merged back into one on the next sync. #691.

With "Folders in Labels" on, "Label as" offers an IMAP account's folders too, and keeps the mail where it is. Labelling a message with a folder copies it into that folder on the server, so it is in both, the way a label works; taking the label off deletes that copy and leaves the others. "Move to" still moves. Only for plain IMAP accounts: Gmail and JMAP already keep labels as labels, and an Outlook folder is still a move. #693.

The phone app can list labels under each account, as the web does. The JMAP Session tells an app whether labels are listed by account (labelsByAccount in urn:plmail:params:jmap:listview), and Mailbox/set renames a label for one account alone with "plmail:renameScope": "account", splitting it off or joining the label that already has the name, like the pencil under an account. No schema change. #698.

Testing a Gemini model host no longer calls its models missing. Gemini's OpenAI-compatible model list spells each model with a models/ prefix, which the Test button on Admin → AI compared literally, so it warned about models that then worked. That prefix is now ignored. A model that really is not on an OpenAI-compatible host's list is reported with a hint to check the name against the list, instead of telling you to pull it onto the host, which only applies to Ollama. No schema change. #743, reported by @llaumgui.

A tab no longer floods the server after its session has quietly renewed. Every live redraw of the sidebar (after a label change, in any tab) saved the open or collapsed state of each section and tree again, twice over for the two sidebar copies, although nobody had clicked anything; a click saved it twice. When the tab's form token had gone stale (the session ended and "keep me logged in" signed the browser back in), each of those saves was refused by sending it to the login page, and the browser followed that to a full inbox render: hundreds a minute from one tab, slowing the mailbox for everyone. The sidebar now saves only a state somebody changed, a stale token is answered with a plain refusal instead of a redirect to the login page, and fetching the label lists no longer redraws them in every other tab. No schema change. #745, reported by @wbilger.

A page left open across a restart keeps working. A page still on screen from before the server restarted, signed back in by "keep me logged in", carried a form token from the session the restart ended. Its workspace saves were refused, and the "new" counts on the workspace tabs, which the page asks for by itself when it reconnects, left an "Invalid CSRF token" error in the log. The same went for anything else the page sends by itself or on a click: the sidebar's state, summaries and translations, insights, task ticks, browser notifications and the rest. Their tokens now outlive the session, as the page's main one already did. No schema change.

Tables in mail keep whole words on a phone. A table with fixed-width columns beside a free one, such as Bitbucket's commit notifications, squeezed the free column to one letter a line on a narrow screen, because the reading frame let words break between any two letters. Long words and links still wrap; a table that is wider than the screen now scrolls sideways, as in Gmail. No schema change. #747, reported by @dzonder.

A Gmail message deleted before plMail fetched it is no longer logged as a warning. Every autosave of a draft written in Gmail replaces the one before it, and mail a filter or another device deletes on arrival goes the same way, so Gmail sometimes names a message that is gone by the time it is asked for. That showed in the admin log as "messages permanently unfetchable" about twice a day. It is now an info line, "messages deleted in Gmail before they were fetched". Any other refusal still warns, and now names the HTTP status Gmail answered for each message. #751.

Files attached in Apple Mail show up as attachments. Apple Mail sends a file it attaches as Content-Disposition: inline with no Content-ID, and plMail stored such a part as an inline image. Nothing in the body pointed at it, so it was shown nowhere: no chip under the message and no paperclip in the list, while Gmail listed it. A part is now inline only when the message's HTML embeds it by its cid:, whatever its disposition says. Mail already stored gets its attachments back from app:backfill attachment-unreferenced-inline, which also runs as an upgrade task; calendar invites stay as they are. No schema change. #753.

The database comes back after Docker restarts. The database service in compose.yaml had no restart policy, so when the Docker engine restarted (a package upgrade, a reboot) it stayed stopped while php and worker came back and kept restarting, unable to resolve database, until somebody started it by hand. It now restarts unless-stopped, like the services that depend on it. #757, by @dzonder.

Migration: no schema change. docker compose pull does not update compose.yaml, so fetch the new one first (git pull in the clone, or copy it again), then docker compose up -d --wait recreates database with the policy. To fix a running install without recreating it, docker update --restart unless-stopped <database container> does the same.

Browser notifications can name the sender and the subject. Switch on Settings → Notifications → Show sender and subject and a notification for new mail says who wrote and the subject instead of "New mail", and a click opens that conversation. Mail that came in together is one notification, "3 new messages", with the senders. A click on a notification now uses the plMail tab that is open, as Gmail does, instead of opening another. The push itself still carries nothing about the mail: the browser asks plMail for the words over your own session when it arrives. Off by default, because the words then show on a locked screen too. With Only notify for unread mail on, a browser now checks the mail the push was about and anything newer, so mail you read on your phone during the wait is no longer stood in for by an older unread letter. No schema change. #760, by @swell-d.

A filter can file mail into a built-in tab. File in category now lists Updates, Promotions, Social, Forums and Primary beside your own tabs, so "everything from amazon.fr goes to Updates" is one filter. The choice holds when mail is sorted again; a tab you switched off is not offered, and mail filed into one lands in Primary. Deleting the filter, or changing it to file somewhere else, sorts its mail again. Choosing Move to folder for an action no longer leaves the editor without its folder list. #762, by @jo2904.

Migration: adds the nullable message.rule_builtin_category and message.rule_builtin_rule_id columns. No deployment change.

A click on a mail moves the keyboard cursor there. After # or the arrow keys, the outline stayed on the old row however many others were clicked. #767.

The compose editor shows paragraphs with the spacing the recipient sees (#782). Pressing Enter starts a new paragraph. The editor used to show it as a plain line break, while the sent mail had a full blank line between paragraphs. The editor now leaves the same space, in new mails, replies, signatures and templates. For a line break without the space, press Shift+Enter.

Workspaces can keep to some of your accounts, and have a sidebar of their own. In edit mode, Groups & sidebar chooses which account groups a workspace shows: the mail list, Starred, Unread and the rest, the sidebar's rows and counts, and Compose's first From keep to their accounts. Settings → Inbox → Account groups (the unified inboxes) now lets an account be in several groups; Other is the rest, accounts in none of yours, and is no longer filled or renamed by hand. A workspace picks the built-in Mail sidebar, none, or one of your own, made of fixed links, headings, the clock and rows that grow by themselves, and shared between the workspaces that use it. Each workspace tab shows how much arrived since you last looked, and a dot for what starts within the hour. The calendar and tasks panes show the workspace's calendars and lists, the others faint, or all alike; a calendar or list without an account belongs to one workspace. space: and Settings → Search limit search to a workspace. Switching between workspaces with other accounts draws everything in one go. See Workspaces. #783.

The clock is no longer a sidebar placement: the Mail sidebar has a clock switch of its own, and a sidebar of your own a Clock row. Whoever had the clock in the sidebar keeps it there.

Migration: two migrations. One lets an account be in several unified inboxes (the unique index on unified_inbox_account.account_id becomes one on the inbox and account pair); the other adds an index on message (account_id, created_at) for the new counts, which takes a moment on a large mailbox. No data moves.

Any pane can be minimised, hidden or shown on demand. A pane's ⋯ menu has Minimise, which folds it to a bar where it is (⌥ M), and Hide pane (⌥ H), which takes it off the screen and puts a button for it in the top bar. Show on demand makes that the pane's normal state: the calendar, contacts or tasks keep their place in the workspace and come and go with their button, as the calendar button did before workspaces. A sidebar of your own can carry the same switch as a row. Minimised, Happening soon says what is next on one line, such as 3 coming up · next: Parcel — Today · 14:00, and Settings → Insights has Show again to take its ✕ back. What is minimised or hidden is remembered per device, like the divider positions; on demand is saved with the workspace. No schema change. #791, suggested by @wbilger.

"All N in this view" now holds for "Label as" and across pages. Labelling, or taking a label off, a whole folder selected that way reaches every conversation in it, as a background job like archiving one does; it used to label only the page on screen. The selection also survives "next page", whose rows now show ticked, instead of quietly falling back to the ticks on the first page. Star and Pin, which work on ticked conversations only, are greyed out while a whole view is selected rather than doing nothing. Reported by @mcmikemn in #804.

The mail list updates when mail changes elsewhere, not only the counts beside it (#807). The badges in the sidebar and on the inbox tabs already followed every change to your mail, but the list only re-read itself after a sync. So when the assistant moved a new mail to another inbox tab after it had been shown, or a message was read or archived on your phone or in another tab, a tab could say "1" over a list without that mail until you clicked it. The list now follows the same changes. Your own clicks in the same tab don't make it reload.

A message's ⋮ menu closes when you tap or click anywhere else (#807). A click inside the message itself left the menu open, because the message is drawn in a frame of its own. On an iPhone, tapping the page next to the menu didn't close it either. Both now close it, and so does Escape. The same goes for the other small menus in the app.

The web app on an iPhone no longer zooms in when you tap a text field (#807, #885). iOS zooms the whole page into any field with text smaller than 16px and doesn't zoom back out. That includes the message text in the compose window. On iPhones and iPads the app now tells Safari not to zoom on its own, so fields keep their normal text size. Pinch-to-zoom still works.

A collapsed parent label shows the unread mail in the labels under it (#807). With the tree collapsed, the number counts the label and every label nested under it, each conversation once. With the tree open, each label shows its own number as before.

Enter in the compose editor starts one new line, without a blank line above it (#807). Enter used to start a new paragraph. Mail clients put a blank line's worth of space around every paragraph, so each Enter showed up as a gap, in the editor and in the sent mail. Enter now starts a plain line, the way Gmail and Outlook do. Paragraphs you paste, and those in templates and signatures, keep their spacing.

An Inbox conversation always shows Archive, Delete and Snooze when you open it (#807). If an earlier message in the conversation had been archived or marked as spam, the reading pane counted the whole conversation as archived or spam and hid those buttons, even with the newest mail in the Inbox. That happened most often with Gmail, which puts a reply into the old conversation, so it seemed to depend on who wrote. A conversation with mail in the Inbox now counts as Inbox. Opened from Spam, it still offers what Spam offers.

Pasting into a mail keeps its formatting and its line spacing (#807). Formatting that the source app set with CSS was lost on paste: a Google Docs paste turned entirely bold and lost its italics, and Pages and TextEdit pastes lost bold and italic altogether. Lines that sat directly under each other came out with a paragraph's gap between them. Pastes now keep bold, italic, underline, colour, highlighting, font and size, and keep the source's line spacing, while the source page's layout is still left out. When an app also puts a picture of the copied text on the clipboard, the text is pasted, not the picture. A new Paste as plain text button in the formatting bar pastes only the words, for phones, which have no Shift-paste.

The compose window opens wider, so its formatting bar fits on one line (#807). At its old standard width the bar broke onto a second line. It now opens 760 pixels wide where the screen has room for that. A window you have resized keeps your size.

A Gmail conversation archived or trashed right after opening it no longer comes back for a few seconds. A re-read Gmail asked for before the change reached it, such as the one that marking the conversation read sets off, used to write Gmail's older labels back. Now a label change on its way to Gmail is kept until Gmail confirms it. Also, reading or starring a message here no longer stops plMail from noticing, for up to an hour, that it was marked unread or unstarred in Gmail. Reported, with the timings that pinned it down, by @wbilger in #810.

A JMAP client that declares every capability the server advertises is no longer refused. The Session listed urn:plmail:params:jmap:push, but a request naming it in using was turned down whole with "Capability is not supported", so a client that copied the Session's capabilities could not make a single call. It is accepted now, and a test holds every advertised capability to the list a request may use. No schema change. #813.

Remote images: trust a whole domain or a pattern, and see the whole list (#815). Some senders use a new address for every mail, so "Always show images from" one of them never covered the next. The images bar now also offers "Always show images from everyone at" the sender's domain, except at providers like gmail.com where anybody can have an address. Settings → Reading & writing → Reading lists every trusted sender with a remove button each. Its field adds addresses, whole domains (*@example.com) and patterns such as invoice+*@stripe.com, several at once.

The insight strip above the mail list keeps up without a reload. A strip that was empty when the page loaded never noticed new insights, so a parcel or a flight found after that stayed hidden until the next reload. And once the strip was waved away with ✕, or its last card dismissed, nothing new could bring it back until a reload, although a newer insight is meant to. Both now appear as soon as the sync finds them, including across workspace switches. No schema change. #821.

app:gmail:skipped <account> --forget brings the forgotten messages back on an account whose import has finished. It deleted the record of the skipped messages, but a finished Gmail import only follows Gmail's history after that and never lists the mailbox again, so nothing asked for them. --forget now has the account's next sync list the mailbox once more, which fetches only what plMail neither has nor has skipped. #823, reported by @dzonder.

Mail from one of your Gmail accounts to another reaches the second one's inbox again, even when its Google address changed. A Gmail account matched received mail only by the address it was connected as. When that Google account's primary address changed later (a custom domain added, a Workspace domain renamed), mail delivered to the new address named nobody. If another of your connected accounts had sent it, plMail took that account's Sent copy for the same message and left it there, so it never showed up in the recipient's inbox. The same happened to mail Bcc'd between your own accounts. An account's own addresses are now all the addresses Gmail lists for it, not only the first one, and a copy another of your accounts sent is no longer mistaken for a received one. Reconnecting such an account no longer fails with "the authorised mailbox is not this account": when the sign-in reports a different address, plMail asks Gmail which mailbox the new grant opens, and goes ahead if it is this account's. #823, reported by @dzonder.

Migration: no schema change. Messages set aside before the update stay set aside until asked for again: bin/console app:gmail:skipped <account> --forget clears the record for that account, and the next sync fetches them under the new rule.

Happening soon is a pane you can put anywhere. The strip of upcoming parcels, flights and tickets that sat above the mail list is now a pane of its own in your workspaces: put it beside the list, under the calendar or in a workspace with no mail at all, or close it from its menu. It still takes no room on the days it has nothing to say, folding away so the panes beside it fill the space, and it comes back at the size you gave it when something turns up. On a phone it is a tab with a badge counting its cards. Workspaces you already have get it above their mail list, where the strip was, unless you had switched the strip off. No schema change. #824.

Happening soon keeps to the workspace's accounts. In a workspace of some account groups the pane shows only their parcels, flights and tickets, like the mail list beside it, and a switch to another workspace redraws it with the rest. A workspace that shows every account still shows them all. Waving the pane away with ✕ still holds everywhere until something new turns up. No schema change. #826.

Evening mail is no longer dated tomorrow. West of UTC, a message that came in late in the evening showed the right time beside the next day's date — "Nov 29, 7:04 PM" for mail received at 7:04 PM on the 28th — and just after midnight east of UTC it showed the day before. Dates and times now come from the same clock everywhere: the message list, search suggestions, the open message and its details, print, the original source, read receipts, bounces, summaries, invitations and insights. Plain dates, such as release dates and calendar days, stay as they are. No schema change. #834, reported by @wbilger.

A message the composer cannot encrypt or sign now says why instead of doing nothing. When the encryption step refused a send, for instance because the keys were locked in that browser, the composer failed while clearing its status line and never showed the reason: Send did nothing and nothing reached the server. The reason is shown again. No schema change. #841.

The composer offers to unlock your keys when it needs them. A send, a save or an encrypted draft that could not go on with the keys locked pointed at Settings → Encryption. The note now has an Unlock them button beside it, says it once instead of twice, and no longer marks the recipient as wrong. An encrypted draft opened with the keys locked keeps saying so, and cannot be typed into until it is open. What was typed just before a refused send is saved again. No schema change. #841.

A second account with your Gmail address no longer takes the Gmail account's mail. plMail guessed from the addresses which accounts Gmail collects mail for. An iCloud account whose Apple ID is the Gmail address was taken for one, and the whole Gmail mailbox was filed under it. Now you say so: each account asks whether Gmail also receives its mail, when you add or edit it and under Settings → Aliases, and it starts on No. It replaces the switch on the Gmail account, which covered every other account at once. On No, mail that is in both mailboxes is listed twice instead of being left out. Two buttons under Settings → Aliases put right what is there already, as background jobs: Merge now for mail listed twice, Move to Gmail for Gmail's mail under the wrong account. That page also names each account's service, so two accounts at one address can be told apart. #842, reported by @benwmerritt.

Deleting mail in Gmail no longer removes a POP3, JMAP or Outlook account's own copy. When Gmail collected such an account's mail, plMail linked the two copies and then took the account's for one Gmail had made. Only IMAP copies were kept. Found while fixing #842.

Migration: adds account.gmail_collected_by_id. Accounts whose mail a Gmail account already files stay linked to it, unless that Gmail account's switch was off. Where several Gmail accounts collect for one account, or two collect for each other, only the link with more mail is kept; a Gmail account that had collected nothing yet is not linked. Set those under Settings → Aliases, or their new mail is listed twice. One with the Gmail account's own address and no mail on its own server is not linked. No mail is moved by the update; Move to Gmail does that. A Gmail account whose switch was off now stores mail it collects for other addresses, instead of leaving it out. A configuration backup made before the update restores accounts unlinked.

A Gmail import no longer gives up on mail because Google refused the request. Any answer plMail did not know, a rejected sign-in token (401) included, counted as "this message is gone", and the message was never asked for again while the import reported itself complete. Only 404 and 410 count as gone now. A rejected token is replaced and the mail asked for again; a sign-in that stays refused fails the job without recording anything; any other answer is asked for five times over two and a half hours first. A message with a broken character in it is stored instead of skipped. app:gmail:skipped shows what Google answered. Mail skipped before the update stays skipped: if app:gmail:skipped <account> lists messages Gmail "could not return", run it with --forget to have the mailbox listed and that mail asked for again. Adds one nullable column. Reported by @benwmerritt in #843.

Mail Gmail collects for another account opens its attachments, shows its source, and is deleted from Gmail too. With Gmailify, plMail asked Gmail about such a message as the account it is listed under instead of the Gmail account that has it. Attachments failed to open, Show original showed a reconstruction, and Delete forever removed the mail here and left it in Gmail. A message listed under one Gmail account and held by another had its archive, star and label changes sent to the wrong mailbox as well. Attachments that failed open now; mail that was left in Gmail stays there and has to be deleted in Gmail. No schema change. #844, reported and diagnosed by @benwmerritt.

A folder emptied or moved from another client is followed, however large it was. When most of an IMAP folder disappeared at once, plMail took it for a server fault and refused the folder's listing at every sweep, for good: the folder kept showing mail that had been moved or deleted elsewhere, and deletions stopped being noticed in the whole account. Large changes are now believed like small ones, in every folder, the bin and spam included. Mail is still only deleted here once every folder has been looked in and the server has confirmed each message is gone, and a listing shorter than the folder says it is counts as no answer. Schema: two columns on mailbox, three removed. #845, reported by @robertobasile84; #756.

Mail on an IMAP server that plMail is missing is fetched by itself. plMail never looked again at a message below the point it had read a folder to, so anything it had dropped or failed to store stayed missing while the server still had it. Each folder's regular full listing now notices and fetches it. Older messages can appear after this update for that reason. #845.

An address field takes a second line only when something is on it. The space kept for typing beside the addresses wrapped onto an empty line of its own when they left a little too little room, which on a phone made To more than half as tall again with one address in it. No schema change. #854.

Pictures a newsletter offers in several sizes show once images are shown. A mail can give the browser a choice of images with <picture> and srcset, and the browser draws the one that fits instead of the plain image. Only the plain image went through the image proxy, so the chosen one was refused and drawn as a broken image, even after Show images, often a newsletter's whole header. Every image in the choice now goes through the proxy, and stays blocked until images are shown, like any other remote image.

A mail is shown on its own page colour. Most newsletters set a colour for the whole page, usually white, and lay their boxes out on it. That colour was lost on the way in, so on a theme whose reading sheet is tinted, a mail designed on white showed as white boxes on grey. The colour the mail sets for its page is now kept, for mail already received too; a mail that sets none looks as before.

Images whose address carries an encoded slash load again. Image CDNs that put the original image's address inside their own (…/fetch/https%3A%2F%2F…) came out as blank space, even after "Show images": the proxy received the address with / in place of %2F and refused it as wrongly signed.

HTML mail written as XHTML keeps its styles. Many newsletter templates declare the XHTML namespace on <html>, and such a mail was stored without any of its stylesheet: spacing, link styles and image layout were lost, and a tracking pixel could leave an empty band at the top. The stylesheet is now applied, and an upgrade task cleans the mail already received the same way.

A label deleted in Gmail is taken off the mail in plMail too. plMail kept the Gmail id of a label deleted there, so filing mail under it from plMail sent Gmail an id it no longer knew, and the mail Gmail had unfiled stayed under the label here. At the next sync the label now loses that id and comes off that account's mail, as Gmail did; the empty label stays for you to delete, and filing mail under it makes it in Gmail again. No schema change.

Tasks reach the phone apps. plMail's JMAP server now serves task lists and tasks under JMAP for Tasks (urn:ietf:params:jmap:tasks, draft-ietf-jmap-tasks-07): reading, creating, completing, editing, moving and deleting them, steps and repeats included, with changes pushed to the apps as they happen. A task changed on a phone reaches Microsoft To Do or a CalDAV server the same way one changed in the browser does, and task reminders carry what an app needs to open the task. The apps take it up in their own releases. Because the draft can still change, a later release may change this API with it. #870.

Contacts edited from a phone keep their office location, phonetic company and custom fields, and a merge can be undone again. An edit through JMAP's ContactCard/set cleared those three fields, which have no JSContact property. They are now published on the cards as plmail.org: vendor properties, so the apps can show and change them. Undoing a contact merge, on the web or through Contact/mergeUndo, failed with a server error on every merge. #877.

Breaking for JMAP clients: calendars are served under the IETF URN only. The JMAP server no longer advertises urn:plmail:params:jmap:calendars. Calendar/get and CalendarEvent/* answer under urn:ietf:params:jmap:calendars, always in the draft's shape (calendarIds, one recurrenceRule, baseEventId). The Android app already reads it; the iOS app follows later.

A task changed on the phone or by a sync shows in the open tasks pane straight away. The pane only redrew itself after a change made in that tab, so a task finished in a phone app, or brought in from Microsoft To Do or a CalDAV server, stayed on screen until the pane was opened again. Every change to a task or a list now tells the user's open tabs, and the pane reloads, keeping its place in the list. It waits while the task dialog is open or something is being typed into the pane, and does not reload for a change the same tab just made. No schema change, no deployment change. #884.

On a phone, a conversation's subject uses the full width again (#886). The message count and "Summarise this conversation" sat beside the subject, which squeezed it into a column a few letters wide. Where there isn't room for both, the count and the button now move to a line under the subject. A narrow reading pane on a desktop does the same.

A contact with a long field no longer stops its whole address book syncing. A card whose street, city, name, job title, phone number or other text was longer than plMail's column for it (255 characters for most) failed its insert, and because a pull's contacts are written in one flush, the book's sync died on that card and retried it until the queue gave up. These fields have no length limit any more, so the card imports as it is. Cutting the value to fit was not an option: plMail would have sent the shortened value back to the server the next time the contact was edited. #892, reported by @ccarpo.

Long conversations fold their middle. A conversation of five or more messages now shows its first message, its last two, and every unread message and draft. The rest fold into one card that shows who wrote them, how many and when; click it to show them.

Filters can match with *. Three new conditions take a pattern in which * stands for any run of characters: From matches (invoice-*@example.com), Sender's domain matches (*.example.com, every subdomain) and Subject matches (Order * shipped). A pattern is held against the whole value and ignores case. Over JMAP they are fromAddressPattern, fromDomainPattern and subjectPattern. No schema change. #899, requested by @DiegoTheWolf.

Filters can test any header. A new Advanced part at the end of the condition list holds Mailing list is, Header contains and Header matches: name a header such as Delivered-To or X-Original-To and test that it is there, that it contains some text, or that it fits a pattern — the way to tell apart mail sent to different aliases of one address. JMAP Email/query now accepts RFC 8621's header condition as well, and headerPattern as a plMail extension. No schema change. #903, requested by @DiegoTheWolf.

Shift-clicking an avatar selects a range in Firefox too. Firefox does not pass a Shift- or Ctrl-click on the avatar on to the row's checkbox, so only the first row was ticked. The avatar now handles those clicks itself. #915.

Microsoft accounts no longer stop refreshing behind a reverse proxy. The worker sent http://localhost as the redirect address with every token refresh, and Microsoft refused it with AADSTS50011 although signing in had worked. Workers and console commands now build addresses from the public address chosen during setup, unless DEFAULT_URI is set. #916.

The phone app shows each calendar, task list and address book once. Over JMAP, all of a user's calendars, lists and books were published under "the first mail account", and which account was first depended on the order the database returned them in. The Android app kept what each account had told it, so a user with three mail accounts saw every calendar three times. Each calendar, list and book is now published under the account it belongs to: a mail account's under that account, a connection's (CalDAV, CardDAV) under an account of its own for that connection, and plMail's own under one account named "plMail". An event moved to a calendar of another account now reaches other clients as a move; before, a move between calendars dropped out of what JMAP clients were told had changed. Needs the matching Android update to show calendars from every account (pl_mail_android#158); a plMail that mirrors calendars or contacts from another plMail over JMAP now reads all of that server's accounts. No schema change. #923.

HTML mail no longer shows its phone layout on a wide screen. Newsletter templates often write their screen-size rules without a space (@media(max-width:620px)), and such a mail had those rules applied everywhere: phone-only buttons appeared, side-by-side cards stacked at full width and some headings ran one letter per line. They now apply to no screen, as in other web mail, and an upgrade task cleans the mail already received the same way. No schema change. #928.

An address's Always Bcc can be changed from the phone app too. Identity/set now takes bcc, the default Bcc an address adds, and a plMail bccInherited flag for "same as the account", which Identity/get reports beside it. The rules are the Settings page's: valid addresses, at most ten. No schema change. #931.

Senders whose images you always show are the same in the phone app. The trusted image senders and the "Always show images" switch are reachable over JMAP (urn:plmail:params:jmap:remoteimages, TrustedImageSender/get and /set), so trusting a sender on the phone loads its images in the browser too, and the other way round. No schema change. #934.

Save an attachment to Paperless, Nextcloud or any other connection from the phone app. The web's "Save to…" is reachable over JMAP (urn:plmail:params:jmap:integrations, Integration/get and Integration/upload): the app names a connection and an attachment, and the server uploads it, so the file never travels through the phone. Every provider that can take an upload works. No schema change. #936.

Attach a file from Nextcloud, Paperless or any other connection in the phone app. The web composer's "Attach from…" is reachable over JMAP (Integration/browse and Integration/fetch): the app browses a connection's folders, and the server fetches the chosen file into the account, so it is never downloaded to the phone first. Integration/get now also lists connections that can only be attached from, marked with canAttach and canUpload. No schema change. #938.

Changing the sender to another account keeps a draft's attachments in the phone app. JMAP Blob/copy (RFC 8620 §6.3) copies attachments and uploads from one of your accounts into another on the server, so a draft moved to another account takes its files along without the phone downloading and uploading them again. No schema change. #940.

The phone app's "Attach from" can show previews and a photo grid, as the web's picker does. GET /jmap/integrations/{id}/thumbnail hands an app a file's preview with its usual credential (named by thumbnailUrl in urn:plmail:params:jmap:integrations), Integration/get says which connections have previews (canThumbnail) and which are photo libraries (isMediaLibrary), and Integration/browse carries the date bar's months (buckets). No schema change. #943.

Writing help, summaries and translations reach the phone app. The apps can now ask for the same AI help the web offers — drafting and rewriting in the composer, summarising a conversation and translating a message — over JMAP, under the switches the installation and each person set. The server makes every model call and keeps the model settings to itself, and a summary or translation made on the phone is the one the web shows, and the other way round. No schema change. #946.

The guide to running behind a reverse proxy covers SSO gateways. With Pangolin, Authentik or Authelia in front of the whole host, the Android app, calendar apps and provider push only ever reached the gateway's login page. Behind a reverse proxy now lists the paths to let through, what already protects each of them, and the settings for Pangolin, Authentik and Authelia. Documentation only. #949.

The Android app colours your accounts the way the web does. The colour an account wears in the sidebar and in the corner of its message rows, a palette one or one of your own, now reaches the apps, so an account you made orange here is orange on your phone too, instead of a colour the app picked for itself. Needs pl_mail_android with pl_mail_android#132.

Files added to a message one after another no longer vanish from the attachment strip for a moment. After each upload the strip is drawn again, once for the upload and once more after the pictures are brought to the chosen image size, and with files added in quick succession those answers could arrive out of order: an older one put back a strip without the file just added, until the next one brought it back. The strip's requests now go one after another. No schema change.

Drafts keep their quote and signature markers over JMAP. A draft saved on the web or in an app now comes back to the apps with its quote and signature still marked, so an app reopening it can keep them out of its editor. A draft body sent as an update from an app is now sanitised the same way as a new one.

An all-day event ends on the day the editor says. An all-day event is stored as ending at the midnight after its last day, but the editor showed and wrote that midnight as if it were the last day itself, so an event picked as "ends Fri Dec 11" stopped on Thursday in the calendar. The editor now shows the last day the event covers and stores the midnight after the day picked. Events saved before keep their dates and now show the end the calendar already drew.

Picking a day in the event editor lands on the day you click, also for events in the past. For an event more than a few days from today, the strip of days re-centred on every click, so the day just clicked was drawn where the old one had been and the pick looked ignored. For a day before today whose time was not midnight, the pick landed on the day before, and the hour and minute buttons were off the same way. The strip now stays put while the chosen day is in it, starts at the event's start day when setting an end close to it, and every pick lands where it was clicked.

What you type into a dialog stays in the field you chose. For a moment after a dialog opened, the keyboard could jump back to its first field, so the start of a task's step was typed into the task's title.

Don't miss a new pl_mail release

NewReleases is sending notifications on new releases.