github karatektus/pl_mail v0.3.5

latest releases: v0.5.0, v0.4.5, v0.4.4...
one month ago

Image: ghcr.io/karatektus/pl_mail:0.3.5

Password managers no longer fill client-secret fields. Opening Admin → SSO, or a Google, Microsoft or integration provider form, could put your mail address in the client ID and your password in the secret field, one press of Save away from being stored; with that stopped, a click in the field still had Chrome list every saved password and Bitwarden offer to generate one, and Bitwarden opened its menu in the text fields below. All of it followed from the field being a password input, which no attribute talks every browser and extension out of. Client secrets, API tokens and mail-server passwords are now text fields drawn as dots, and a text field that asks for nothing says autocomplete="off". The sign-in form and the forms that set a login password are unchanged.

Sign in with OpenID Connect (Authentik, Keycloak, …). Enter the provider's issuer, client ID and secret under the new Admin → SSO and the login page offers a "Sign in with …" button above the password form, which stays; the OIDC_* variables do the same for an install configured from its compose file, and what is saved in the admin area wins. An account is found by its address the first time — only when the provider says it verified that address — and by the provider's subject from then on, so changing the address at the provider later changes nothing here. A switch creates an account for somebody plMail has never seen; it is off by default. Suspension, the login throttle and two-factor apply as they do to a password. Setup, with Authentik step by step, is in Single sign-on. app:user:oidc-unlink forgets a link from the console, for somebody deleted and re-added at the provider. Migration: two nullable columns and a unique index on user, and a new one-row table oidc_config; nothing backfilled, reversible. #106, by @jo2904.

Wider Happening soon panel. The panel opened at the narrowest dialog width, so a fortnight of bookings pushed the undated cards under "Also spotted" far down the scroll. It now opens wide, and on a screen wide enough for it the list and "On your radar" stay on the left while "Also spotted" sits to their right. On a phone it stacks as before. No migration. #83, by @Flouss.

The calendar shows times in your own time zone. A calendar you subscribe to from Google or a CalDAV server arrives with the time zone that account holds for it, and a shared one is often set to UTC there. When such a calendar was your default, the whole calendar page was drawn in UTC, so an appointment at 11:30 Paris time showed at 09:30 — the stored time was right, only the clock it was printed on was not. The page, and the dot in the top bar that decides what is left of today, now use your own time zone (the Time zone setting, else the install's default) whenever the default calendar is a synced one. A calendar created here keeps the zone it was given. No migration; nothing stored changes.

Inbox unread count in the browser tab on every page. The "(3)" in front of the tab's title appeared on the Inbox and vanished on Settings, the calendar and the admin pages, although the sidebar there still showed the same number. It stays now, and updates on sync like the Inbox's does. Mail folders are unchanged: each shows its own figure or none, so Trash, Sent and Archive do not borrow the Inbox's. No migration. #72, by @Flouss.

Fixed missing attachments on Outlook and Hotmail mail. A message with a file on it arrived in plMail with no attachment at all, no paperclip, nothing to download, for every Outlook.com, Hotmail and Microsoft 365 account. The list of a message's attachments was asked of Microsoft in a form it rejects, and a refused list was read as "none", silently. The request is fixed, and a message that Microsoft says has attachments but whose list does not come back is now logged as a warning instead of passing unnoticed. Mail that has already been synced stays as it was stored, without its attachments, until it is fetched again; mail that arrives from now on is correct. No migration. #77, by @Flouss.

Parcels picked up at a relay point show as delivered. The mail that says "Votre colis a été retiré" or "… récupéré par son destinataire" named no stage the radar knew, so the card stayed "announced" after the parcel was in its recipient's hands. Both now read as Delivered; the same words negated ("n'a pas été retiré", "n'a pas été récupéré par son destinataire") do not, and neither do those words about something other than the parcel. No migration.

Fixed the carrier shown for Pickup relay parcels. The Pickup relay network (network1.pickup.fr, network2.pickup.fr) hands over the parcels of several carriers, and its mail gave every parcel whose number has the international S10 shape the carrier "Deutsche Post", whoever was shipping it. A card now takes its carrier from the sender's name when that starts with Chronopost or Colissimo, with that carrier's tracking link, and is otherwise headed "Pickup" with no carrier and no link. What the number itself says still counts: a number ending in FR is La Poste's, and Colissimo's own shape is Colissimo's. Cards already on the radar correct themselves the next time their mail is read, no duplicates. No migration.

Re-reading old mail no longer resets a parcel's status. A card keeps the newest statement of its series, but "newest" meant the last mail read, not the latest dated. app:backfill insights reads by the order mail was stored, which for an Outlook import is newest-first, so a parcel's "out for delivery" mail was read before its "announced" one and the older statement overwrote it. A mail older than the one a card already stands on now leaves the card alone; mail of the same instant, or a card whose mail was deleted, behave as before. No migration.

Cards from old mail no longer look new. The cards without a date of their own — GitHub activity, mostly — are listed for the last seven days, measured from when the card was created. That equals the mail's age only while cards are made as mail arrives: app:backfill insights, or an import, creates them from old mail now, so a month-old notification took a place among the newest twenty for a week. The window and the order now follow the date of the card's mail, and the card's own date only when its mail was deleted. No migration.

One-time codes leave Happening soon once they expire. When a code's mail says how long it lasts, the card drops off when that time passes. When it says nothing — a password manager's, many shops' — the card had no date to drop off by and was listed like any undated card, for seven days, with the code on it. Such a code is now offered for fifteen minutes from its mail; it is still on the mail itself. Codes that state an expiry, and every other kind of card, are unchanged. No migration.

Insights read the whole of an Outlook mail. For an HTML mail, Microsoft Graph gives the text as a preview cut at 255 characters, and that preview is what the card extractors (parcels, codes, flights, tickets, invoices) read instead of the mail. A tracking number further down — in a Pickup or IKEA relay notice, say, or a GLS mail with the number under a heading — never produced a card. They now read the mail's HTML for an Outlook account, and the preview only when the HTML has no words in it. Mail already stored is read again by app:backfill insights --since=…. No migration.

GLS France parcels are recognised. GLS France prints no tracking number of a recognisable shape: its mails carry an eight-character code under "Numéro de colis" (Q7XK2M4P), and the sender was not known either. Mail from gls-france.com is now read for that code, behind that label only, and the card links to GLS France's own tracking page. Eight bare digits, or a code in mail from anyone else, are still not read. No migration.

Fixed wrong invoice numbers and merged invoice cards. A billing mail whose footer says "Manage invoice notifications" had that line read as an invoice number: "invoice no" matched the start of "notifications" and the rest of the word became the number. Every bill that sender sent got the same number and so the same card, and each overwrote the last. "Invoice no" and "invoice number" now have to be whole words. No migration.

Fixed sign-out not sticking. A page's background requests that were still on their way when you pressed Sign out could sign you straight back in through "Keep me signed in". Its tokens are now kept on the server, one per device, and signing out deletes this device's; other devices stay signed in. Everybody who relied on "Keep me signed in" is asked to sign in once more after the update. One table is added; the migration is reversible.

Sender name per address. Settings → Aliases has a sender name field under each address; left empty, the address sends under the account's name as before. The name was already shown in the From selector for an alias that had one (a phone app could set it), but the mail itself went out under the account's name regardless — the selector and the recipient now see the same one, in the browser and from the apps. No migration. #70, reported by @Node815.

Replies are sent from the address the mail came to. Mail that came in for an alias is answered from that alias, with that alias's signature, instead of every reply opening on the primary address; answering your own sent mail keeps the address it was sent from. A domain whose every address reaches the mailbox can be added under Settings → Aliases → Catch-all domains, and mail to any address at it is then answered from that address without adding each one as an alias (not offered for Gmail and Outlook accounts, which send only as addresses the provider knows). A meeting invitation sent to such an address is yours to answer. Only the address a mail actually reached you by counts as yours, not the whole domain, so somebody else with a mailbox at the same domain stays in your reply-all and is never answered as. Reopening a draft saved from an alias no longer puts it back on the primary address. Typing an arbitrary From address into a new message is not part of this. The phone apps build their replies themselves and get the same answer from the server: Email/get has a replyFrom property, the identity that answers a mail, returned when asked for by name, and EmailSubmission/set accepts the identity it names for a catch-all address. A draft saved by an app now keeps its sender: Email/set takes identityId on a draft (announced as draftIdentity in the session), so a reply written from an alias no longer comes back from Drafts on the primary address. Apps already installed are unaffected and go on answering from the primary address until they are updated. No migration. #41, reported by @YoGo9.

HTML signatures with images. The signature editor has two views, Rendered and HTML. HTML takes the source; Rendered shows it as it will be stored, cleaned by the server, with a line underneath naming what was removed (usually a <style> block and class attributes). An image a signature links to is fetched and kept in the signature — up to 256 KB each — so it shows in the editor, which it could not before, and is sent as an attached inline image instead of a link recipients have to allow. Existing signatures are unchanged until they are next saved. No migration. #32, reported by @eatcodeplay.

Sidebar counts update live. Saving a draft did not raise Drafts, deleting or sending it did not lower it, and a mail read on the phone left the badge where it was until the next sync or a click on another folder. The numbers were only re-read when a button remembered to ask, and the composer, the worker that sends a mail and the phone apps had no way to. The server now says so itself whenever mail changes — on the response to the request that changed it, and over the hub for a change made elsewhere — so every tab hears, once per change. Opening a conversation that was already read no longer writes anything, tells the provider anything or wakes the phone apps. No migration. #86, reported by @pmdevelopment.

Replies from a catch-all address show as "me". It showed the account's name, as though a third person had joined the conversation. Somebody else writing from the same domain keeps their name. No migration.

Meetings on two calendars show both colours in a narrow month. The bar a month cell falls back to when there is no room for the title stacked the two colours on top of each other in a few pixels of height. No migration.

Fixed high CPU use with IMAP servers that drop idle connections. Some servers (Lark, QQ) end an idling connection after a few minutes. plMail read that as a quiet mailbox and kept reading a connection that was gone, as fast as it could, until the 29-minute refresh — a core per folder. It now sees that the connection has ended and reconnects. No migration. #94, reported by @montywei.

Fixed imports stopping one message before the end. A server can list a message it will not hand over (iCloud does, for a draft deleted but not yet purged). Left alone on the last page, it made the import fail before its tries were counted, so it was retried every few minutes for good at 486 of 487 and the account's remaining folders waited behind it. It is given up on after five tries now. The same answer — nothing — from a folder that really is empty was also taken for the server not answering, so mail deleted from an emptied folder elsewhere stayed in plMail; an empty folder is read as empty. No migration. #96, reported by @montywei.

A slow mail server no longer holds up other imports. A server sending a trickle of data never tripped the 30-second read timeout, which is per read, so one fetch could occupy an import worker for as long as the trickle lasted while every other account waited. A worker now gives a message it is handling five minutes; after that its IMAP connections are closed, the message is retried later and the queue moves on. No migration. #95, reported by @montywei.

Fixed Gmail imports waiting a day to finish. plMail fetches some Gmail messages and then does not store them — a draft, a chat, mail whose headers tie it to no account connected here. Nothing remembered that, so every hourly listing found them missing and fetched all of them again: on the mailbox this was reported from, 2,235 messages and about a third of the hour's quota, every hour, with the account showing "Importing: waiting" until the import gave up after a day. They are written down now. The listing leaves them alone, the import ends on the pass where everything outstanding has an answer, and the progress line counts them as done, so it reaches Google's total. php bin/console app:gmail:skipped shows what was skipped for an account, grouped by kind. An import already stuck this way finishes within two hourly listings of the upgrade. Whether some of these messages should be stored after all is not changed here. Migration: adds the empty table gmail_skipped_message; nothing existing is altered. #90, reported by @karamanliev.

Don't miss a new pl_mail release

NewReleases is sending notifications on new releases.