Image: ghcr.io/karatektus/pl_mail:0.3.1
Mail with no plain-text part is read for insights. Parcels, invoices, codes and the rest were looked for in a message's plain text only, and a shop's shipping notice is very often HTML and nothing else: the tracking number was on the page and plMail was reading an empty string. Such mail is now read as the text its HTML shows — without stylesheets, hidden Outlook blocks or the addresses behind links. A report of a missed insight carries that text too; for these mails it used to arrive empty.
- A date announced as the day the shop hands the parcel to the carrier ("Voraussichtliche Übergabe an den Versanddienstleister") is no longer taken for the delivery date.
- Mail already stored is not re-read on its own;
app:backfill insightsreads it again (the last 24 hours unless--sincesays otherwise).
A calendar file somebody mails you is offered, not added. Two changes that belong together:
- A file attached as an ordinary file is read. An appointment sent as
termin.icswas only recognised when the sender also declared it as calendar data. Recruiting and booking systems often attach it as a plain file, and then the mail offered a download and nothing else. It is now recognised by its name too. - Calendar data that does not invite you waits for a yes. A file with no organiser and no guests, or an invitation addressed to somebody else, used to go straight onto the calendar — which let anybody put things there by sending mail. The card above the message now asks: Add to calendar or No thanks. No reply is sent to anyone. Invitations addressed to you, bookings and your own events are unchanged, and events of this kind already on your calendar stay there.
app:backfill events picks up mail that arrived before this (the last 24 hours unless --since says otherwise).
An Amazon order is on the radar from the moment it is placed. The parcel card appeared with the dispatch mail; the order confirmation before it ("Bestellt: …", "Ordered: …") was not read at all, although it already names the order and the day it is promised for. It now makes the card, with a new first stage, Ordered, and the later mails about the same order move that card on. German mails that promise a weekday ("Zustellung: Freitag") get their date as well.
Importing a large Gmail mailbox no longer runs the account out of quota. Google allows each Gmail account a fixed amount of work per minute, and since 0.3.0 an import fetched old mail fast enough to use all of it. The import itself recovered quietly; what failed was the regular check for new mail on the same account, with "Quota exceeded … Units per minute per user" in the log and new mail arriving late until the import was through. Fetching is now paced to stay well inside the allowance, so an import of a very large mailbox takes somewhat longer and new mail keeps arriving while it runs.
Admin → Performance no longer blames plMail for mail that was late before it got here. "How late mail arrives" measured from the date a message carries, which is the sender's clock: a newsletter dated half an hour before it was sent, or a first message held back by greylisting, was shown as plMail taking that long. It now measures from the moment your provider accepted the message. On the installation this was found on, an account showing "95% within 15 min" had in fact stored all of its inbox mail within a minute.
- Inbox mail and the rest are counted apart. Providers only announce mail that lands in the inbox; spam and filtered mail wait for the quarter-hourly check by design, and used to put a fifteen-minute tail on accounts whose push was working. They now have a column of their own.
- The slowest messages are listed, in a section you click open, one to a row: where each was filed, what brought it in (push, IDLE, the schedule, the sync button) and how long it had already been under way before your provider had it. No subject and no sender, like the rest of the page.
- What brought a message in is recorded from this version on; older mail shows a dash. The last week of mail is given its accept time in the background shortly after the update, so the panel may be sparse for a few minutes.
- This adds three columns and an index to the message table. On a very large mailbox, building the index makes this start-up take a little longer than usual.
A label name that differs from an existing one only in capitals is refused. "work" could be created beside "Work". Gmail treats the two as one label and rejected the second, but only later, in the background: the new label existed in plMail, could be put on mail, and never reached Gmail, with an error in the log and nothing on screen. plMail now refuses it when you create or rename the label, in the browser and from the apps, and says which label is in the way. Renaming a label in the browser had no check at all and could take another label's exact name; it has the same one now.
- If you already have such a pair, nothing is changed for you. Delete or rename the newer one; until you do, putting it on Gmail mail keeps failing in the background.
"Move to" is available to apps, not just the browser. The Android and iOS apps talk to plMail over JMAP, which had no way to ask for a move: an app could only add one label and remove another itself, which files mail in two places on a plain IMAP account and cannot take mail out of Trash or Spam properly. Thread/set now accepts a moveTo instruction that runs the same code the browser's button does. Nothing changes in the web interface. For client authors: Building a client → Moving.
Admin → Performance: how long things take, in one place. A new section directly below System. System says whether plMail is working; this says how long it took.
- How late mail arrives. Per account, the time between the provider receiving a message and plMail storing it. Seconds means push is working; a typical delay of five minutes or more is highlighted, because that account is living on the quarter-hourly poll — which "works", so nothing else would tell you.
- What each worker has waiting. The queue numbers arranged by the process that handles them: how many jobs wait, how long the oldest has waited, how long the job in hand has run.
- New mail waiting for the assistant. The line under the hold switch in Admin → AI says "typically 6 s, 95% within 13 s" — which shows that one message took twice as long as the rest and nothing about why. Here each held message is a row: how long it was kept back, how long it queued before the assistant was asked, how long the model call took, and how much of that call the host spent loading the model. A message that was slow because the model had been unloaded says so.
- Model host. Moved here from Admin → AI, unchanged. The search index backfill stayed under AI, where its Start and Pause belong.
Rows name accounts; nothing about any mail's content is shown. See Administration → Performance.
Before you upgrade
- One migration, applied on boot. Three nullable columns on
message; no row is rewritten, so it is instant on a mailbox of any size. - Mail sorted before this release has no durations and shows a dash in the new table.