Skip to content

v0.3.7

Choose a tag to compare

@github-actions github-actions released this 20 Oct 11:51
· 21 commits to main since this release
c5df99b

Image: ghcr.io/karatektus/pl_mail:0.3.7

Single sign-on can be the only way in. A new setting under Admin → SSO, Single sign-on only (or OIDC_DISABLE_PASSWORD_LOGIN=true in the environment), hides the password form and makes the server refuse a password sign-in, so everybody comes in through the provider. It is in force only while a provider is set up, so a provider that was removed cannot leave an install with no way in, and the box can be ticked only by an administrator who has signed in through the provider themselves. If the provider is down, php bin/console app:sso:allow-password-login brings the form back. App passwords for mail clients and the phone apps, and sessions that are already open, are not affected. Off by default. Schema change: one boolean column on oidc_config, false for every existing install. #169.

A reply threads for the person who gets it. A reply sent from plMail, in the web composer or over JMAP, reached the recipient without In-Reply-To or References, so Outlook, Gmail and Apple Mail showed it as a new conversation instead of part of the one it answered. The draft always held both; the mail built from it never carried them. They are written now, and References always ends with the message answered, as RFC 5322 asks, even when the draft's own list left it out. A mail that is not a reply is unchanged, and replies already sent stay as they went out. No schema change. #206, by @phdelodder.

A send that fails for a passing reason is tried again, and one that finally fails is marked on the draft. Every failed send used to be dropped at once, whatever the reason, so a one-minute Gmail rate limit or a short outage lost the mail and only a toast said so. A rate limit, a provider failing on its side, a busy or greylisting mail server, or a connection that never opened is now tried again for up to two minutes, keeping the wait Gmail or Outlook asks for, and nothing is said while it is. A refusal, such as an unknown recipient or a message too large, is said at once, as before. When the answer to a send is lost after the provider had the mail, it is never sent again without checking: Gmail and Outlook accounts look for it in Sent first, and SMTP accounts report it as possibly sent. A send that finally fails puts a red warning triangle on the draft in Drafts, with the reason, and the same triangle on Drafts in the sidebar while any draft has one; the toast now says why. The migration adds four nullable columns and a partial index to message; it is additive and needs no backfill. #125.

IMAP mail with a repeated Date header is imported, and Proton Mail Bridge folders sync. A message carrying its Date header two or three times (some gateways add their own) could not be read by the IMAP library: it stopped with an error, and that took the rest of its page of the sync or import with it, every time. Such a message is now read with only the first of each repeated Date, Message-ID, In-Reply-To and References, and the stored source keeps every line the server sent. A message that still cannot be read costs only itself: it is tried again on the next syncs and then skipped, like other unreadable mail. And Proton Mail Bridge answered the search for new mail with "no such message", which failed that folder's sync on every poll; that answer now counts as no new mail. No schema change. #219, reported by @sponger544.

Releases are published on GitHub, so you can follow them in a feed reader. Each tagged release now gets a page under Releases with its notes from this changelog and the image to pull, once that image is published. Subscribe to https://github.com/karatektus/pl_mail/releases.atom, or use Watch → Custom → Releases on GitHub. Releases from v0.3.0 on have a page. Nothing changes in the image. Discussion #226, asked by @adrianfurgol.

A parcel on its way no longer says Delivered, and an order number is not taken for its tracking number. A FedEx or UPS mail that said the parcel "will be delivered tomorrow", or offered a text "when it's delivered", gave a card marked Delivered beside tomorrow's date, because any "delivered" in the mail counted. Only a delivery the mail says has happened counts now. A FedEx mail for an eBay purchase also put the eBay order number on the card instead of the tracking number, since both are twelve digits, so Track led nowhere; a number labelled "Order number", "Reference", "Bestellnummer" or the like is no longer read as a tracking number. A card wrongly marked Delivered is put right by the carrier's next mail or by app:backfill insights --since=7d; a card that already carries an order number stays until you dismiss it from its ⋮ menu. No schema change. #120, reported by @sbach89.

Amazon parcels from amazon.co.uk are on the radar, on the right day. Parcels were read from the German, American and French Amazon shops only, so an "Out for delivery" mail from amazon.co.uk gave no card. amazon.co.uk, amazon.ca, amazon.com.au, amazon.in and amazon.sg are now read the same way, and the card's Track button opens the shop that sent the mail. A delivery date such as "23/10/2026" is now read from the shops of countries that write the day first; it used to give a card with no date. And "arriving today" or "tomorrow" is counted from the day on your calendar, in your timezone from Settings → General, instead of the day in UTC, which put a parcel a day early for a mail that came in on an Australian morning and a day late for one on an American evening. That also applies to the carriers' own mail ("Zustellung heute"). Mail that is already in plMail gets its card, or its corrected day, when app:backfill insights --since=7d reads it again. No schema change. #207.

A short outage of the AI host no longer leaves mail without a category for good. When the assistant's host could not be reached, the message was still marked as asked, so the catch-up never offered it again: a one-minute outage left 327 messages with no AI category and no second attempt. A message is now left unmarked, and offered again by the catch-up a quarter of an hour later, when the call timed out, the connection was refused, or the host answered 401, 403, 408, 429 or any 5xx. A host that stays down is tried at that pace and no faster. Held mail is still released at once under the rules' answer. Everything else is marked as before and not asked again: an answer, an answer that is no use, a model the host does not have (404), and a refusal of the request itself (400, 413, 422), which would only come back the same. Mail marked during an earlier outage stays marked. No schema change. #222, by @phdelodder.

The weekly cleanup works on installs that moved their storage, and clears old thumbnails. app:prune:blobs looked for leftover files under a fixed var/, so on an install that sets APP_STORAGE_DIR to another directory it found nothing and reclaimed nothing. It now looks where the files are written. The preview thumbnails of attachments are kept there too now, beside the attachments, instead of under a fixed var/; on such an install the old var/attachments/thumbs directory can be deleted, and the thumbnails are drawn again when they are next shown. The cleanup also deletes the thumbnails of attachments that no longer exist, which nothing removed before. No schema change. #232, #233.

The installed app has the icon you picked, on iPhone and Android too. The tab icon followed Settings → Appearance → Logo, but an app installed from the browser or added to a home screen kept the wax seal, because its icons came from fixed files. The install manifest and the iOS home-screen icon now name your choice. Your browser draws them as PNGs when you pick a logo and uploads them for your account, so the image needs nothing new to draw them; a logo picked before this is drawn by the next page you open. An app that is already installed keeps its old icon until the browser refreshes it or you reinstall. No migration. #141, building on #92 by @Flouss.

The weekly cleanup no longer deletes profile pictures, signature images and backgrounds. Every Sunday at 05:00 app:prune:blobs removed week-old files it found no record for anywhere under var/uploads, var/attachments and var/raw. Profile pictures, signature images and appearance background images are kept under var/uploads without such a record, so they were deleted along with the real leftovers. The cleanup now only looks in the per-account directories that mail attachments, original messages and staged uploads are written to, and leaves everything else on those volumes alone, including directories added later. Files it already deleted cannot be brought back by plMail: restore them from a backup of the volume, or upload them again. No schema change. #214.

Reconnecting a service in the setup wizard no longer fails. Opening the Integrations step for a service that was already connected and saving it again answered with an error page, because the step built a second connection with the same name instead of editing the first. It now edits the existing one, and a blank secret still keeps the stored one. The settings page had the same error when a second connection to a service (a work Nextcloud next to the home one) kept the default name; it now asks for another name instead. No schema change. #216, by @phdelodder.

Inline images in a message show up again. Pictures that a mail carries inside itself, such as a logo or the icons in a booking confirmation, rendered as empty boxes: the message body is shown in a sandbox that sends no session cookie, so each image was answered with a redirect to the login page. They now load through a signed link (/mail/inline/{id}) that only answers for an image of the message being read, and nothing that is not a picture. The link stops working after a day or two, so one that leaks through a forward or a log does not open the image for good; the message signs a fresh one each time it is shown. Many mailers label an inline image application/octet-stream, or image/octet-stream, which is not a registered type at all and is what Vaultwarden's notification mails put on their logo, and such a part was served as a download. For those labels only, the file's own bytes now decide: a PNG, JPEG, GIF or WebP is shown, while SVG, HTML and anything unrecognised are still downloads. A remote image with that label is identified the same way by the image proxy and served under its real type. Messages already in the mailbox are fixed too, no backfill needed. No schema change. #213.

A deleted label no longer comes back after the next sync. On a plain IMAP account, and for a folder on Outlook, deleting a label left its folder on the mail server, and the next sync made the label again. Deleting one now deletes the folder there too. When there is mail in it, the delete dialog first asks where that mail goes — Inbox, Archive, Trash or one of your other folders — moves it there, deletes the folder once the server says it is empty, and only then removes the label. This runs in the background and shows in the activity indicator, which names the folder it is waiting for; a folder that still holds mail on the server is never deleted, and a server that refuses the delete ends it at once with its reason. A folder still being imported is deleted only once its import has finished. A folder plMail creates on an IMAP server (an Archive or Trash it did not have yet) no longer shows as "Importing" in the activity indicator. Deleting an Outlook category never reached Outlook at all, and now does; labels nested under a Gmail label are deleted in Gmail with it. No schema change. #40.

A mail can go to Bcc recipients only. Sending with nobody in To was refused with "Add at least one recipient before sending", even with addresses in Cc or Bcc: the window counted all three, but the server only counted To. It now counts all three as well. A mail with no recipient at all is still refused, and a draft may still be saved with none. No schema change.

Outlook's <![endif]--> no longer shows up in a message. Mail written for Outlook hides parts of itself behind conditional comments, and one form of them ends in a marker that is not inside a comment. A mail that also had a comment containing -- anywhere in it was read by an older parser in one step of the rendering, which turned that marker into text, so a parcel notification could show <![endif]--> in the middle of a sentence. The same mail could also lose a link around a table. Every comment is now removed before that step, and the marker with it. Mail already in the mailbox is repaired on request: php bin/console app:backfill safe-html-conditional-comments writes the shown copy of every message that has the marker in it again from the sender's original, and safe-html-table-links does the same for the links. No schema change. #175, by @phdelodder.

One X on a What's new screenshot. A screenshot opened full size brought its own X into the corner of the dialog, just below the dialog's X. Now there is only the dialog's: pressed once it puts the screenshot back, pressed again it closes What's new, the same as Escape. #187.

An event that ends when it starts no longer runs into the next day. A calendar feed or CalDAV event whose end is its start, such as a reminder at 23:59, was given an hour, as if no end had been stated. Other clients show it as 23:59–23:59, and here it ran past midnight and showed again on the next day. It now gets one minute, which keeps it on its own day. An event with no end at all still gets an hour, but the hour stops at midnight. Events already synced are corrected when the publisher next changes them, or right away by removing the calendar and adding it again. #170.

Some IMAP messages no longer show their own headers above the content. A Stalwart server answers some messages' body with the whole message, headers included, and plMail stored that as the body: the message opened with Delivered-To:, Received: and the rest of its header block printed as text, and its original held the headers twice. An exact repeat of the header block at the top of the body is now dropped before the message is read. Mail already stored that way is repaired by app:backfill repeated-headers, from the stored original and without asking the server; it reads the original of every IMAP message once. No migration. #173, by @phdelodder.