Improvements and updates

Archive of letters

Every letter of a mailbox kept on Stjobno's servers — old and new, with attachments — encrypted with your own key. Read, searched and downloaded even when the mail server lost it.

Updated 2026-11-23

Usually Mail keeps no letters: they lie on your mail servers, and Mail shows them from there (see What Mail keeps of your letters). The archive of letters is the exception you switch on yourself: every letter of a chosen mailbox is kept here too — so if something happens to a mail server, your letters are still yours.

The archive will be a paid function (see Plans); while it is being tested it is free. Every account may use it unless an administrator closed it for that account — then Archive of letters in Mail's settings says You cannot use the archive of letters yet (soon you will be able to ask for it right there, through the site's assistant).

What happens to your letters — point by point

  1. Folders are kept. Every letter in the archive records the folder of the mail server it lay in. The archive's page has an Every folder filter, with the number of letters in each; in the zip the letters are laid out by mailbox and folder too.
  2. The trash and spam are not archived. A letter you deleted was already kept from the folder it lay in, so emptying the trash changes nothing in the archive.
  3. Deleted on the mail server = only a mark. A letter deleted there — by you, by a program or by the service itself — stays in the archive marked Not on the mail server. So does a whole folder deleted on the mail server.
  4. The service closed or locked the mailbox. The archive reads from our disk, not from the mail server: the letters can be read, searched and downloaded as before. More in If the mail server loses your letters.
  5. Many letters gone at once. When 50 letters or more — and at least a fifth of them — vanish from a mailbox's mail server, or 1,000 at once, you get a notice: how many, from which mailbox, and that every one of them is kept. The notice waits a day first: a mail server that is only down for a while or being moved to a new one often shows the letters again soon, and then nothing is said and nothing is marked. If they are still gone a day later, you are told. At most once a day per mailbox. If you deleted them yourself, there is nothing to do; if the letters come back, they stop being marked as gone by themselves.
  6. Deleting the archive — with a check and 30 days to cancel. Delete the archive first asks you to confirm it is you: a code from the authenticator app, a passkey, or a code by e-mail (it always works, even without two-step verification). The mailbox's archive is switched off at once, and its letters are deleted 30 days later; until then the mailbox shows Will be deleted on … with Cancel the deletion. A letter tells you the date — if it was not you, cancel the deletion and change your password.
  7. An unpaid archive is deleted a month later. Unpaid = the subscription paused for want of money on your balance (new letters are then not kept), or the archive switched off while letters stay. You are warned 28, 7 and 1 day before, and the archive's section shows the date in red with Top up the balance. Paid again — the count starts over. A free archive is never unpaid.
  8. There is no backup copy of the archive. The archive is itself a copy of your letters beside the mail server; if you want one more, download the zip from time to time.

Why keep an archive

Your mail lives with your provider — and providers close services, delete quiet mailboxes, lock accounts and make mistakes. These things really happened:

  • Services close. Verizon retired its verizon.net mail and deleted all the mail, calendars and address books not moved before 15 December 2017 (Verizon).
  • Quiet mailboxes are deleted. Google deletes personal accounts unused for two years, mail included, since December 2023 (Tom's Guide); Yahoo deletes the contents of a mailbox not opened for 12 months (Yahoo Help); Outlook.com / Hotmail accounts go after two years without a sign-in (Ask Leo).
  • Accounts get locked. People locked out of Outlook.com by an automatic check report that support cannot override it (Microsoft Q&A); a writer lost an address of 25 years "with no appeal" (Goodreads).
  • Even the biggest fail. In February 2011 a Gmail software update emptied about 40,000 accounts; Google had to restore them from tape, which took days (TechCrunch).

What the archive gives you:

  • Your whole mail in one download — every letter as an .eml file in one zip.
  • Nothing lost when a service closes, deletes a quiet mailbox or locks you out — the archive is on other servers.
  • A real backup: a second copy, encrypted with your own key.

Plans

The archive is paid by its size, every month from your balance, as a part of your subscription. The size counted is what the files take on our disk (compressed).

Archive up to A month
25 GB 1.90 €
50 GB 2.90 €
75 GB 3.90 €
100 GB 4.90 €
  • Switching the first mailbox on takes the package that holds your archive (25 GB to start with). The section says what it costs before you switch: the whole month when you have no subscription yet (it starts that day), or only the days left until your subscription's next day when it runs already. Not enough money on the balance = the mailbox is not switched on and the section says so — top up first, or switch the automatic top-up on.
  • It grows by itself: when the archive outgrows its package, the next package is taken and the difference for the days left is paid from the balance (you get a notice). When it cannot be paid, new letters wait — nothing kept is lost — until the balance is topped up; the next round then takes the bigger package by itself.
  • Switching off every mailbox ends the archive's part of the subscription and gives the days left back to the balance. What was kept stays until you delete it.
  • If your subscription is paused (a month not paid), no new letters are kept until it is paid again.
  • An administrator may make the archive free of charge for an account; then it is never paid.
  • A team may pay for it. When a billing manager of your team ticks you under Payment → Settings → The team pays for the Mail functions of, your archive moves into the team's subscription: the team pays the days left at once and your balance gets its days back. Mail's settings → Archive of letters then says which team pays. Taken off the list, or out of the team, it moves back to your own subscription (when your balance cannot pay it, new letters wait until you top up). See Paying for a team.

What is kept

  • Every letter of every folder of the mailbox: the Inbox, Sent and your own folders — old letters and every new one. Not kept: the trash, spam and drafts (a letter you delete or that lands in spam is not archived from there), and Gmail's extra views (All Mail, Important, Starred — they are your other folders again).
  • Whole: the letter exactly as your mail server gave it, with its attachments.
  • For as long as the archive is on — also after the letter was deleted on the mail server, and after you removed the mailbox from Mail.
  • The same letter in two places (a Gmail label, a forwarded copy) is kept once.

Switch it on

  1. Open Mail → the gear → Archive, POP3 (/mail/settings/archive). Under Mailboxes the green block Create an archive of letters leads there too.
  2. Beside a mailbox, switch on Keep every letter.
  3. The letters start coming at once, the newest first. A big mailbox takes a while: a mail server lets only so much be read in a day (Gmail about 2.5 GB), so the archive may say Paused until … — it goes on by itself the next day.
  4. When it says Every letter is kept, the whole mailbox is in. From then on, new letters are added as they come; a letter you open in Mail is kept the same moment.

A mailbox in the archive wears the chip Archived here in the list of mailboxes; hold the pointer over it to see how much space that mailbox takes in the archive.

POP3 mailboxes

The same section holds the POP3 mailboxes: a mailbox whose server has only POP3 keeps every letter in the archive, and Mail works with it as with any mailbox. POP3 and the archive go on together, and such a mailbox's archive cannot be switched off while it is POP3. Add a POP3 mailbox is there too. How it works: POP3 mailboxes.

Read and search the archive

Open the archive (/mail/archive) lists the kept letters, the newest first:

  • Search works like Mail's list: the subject, the sender, the recipients — every word you type must be there.
  • Choose a mailbox and a folder — the archive keeps the folder each letter lay in on the mail server — or tick Only those gone from the mail server.
  • A letter opens in a window: its text, its attachments (each downloads), and Download the letter (.eml). Pictures from the internet are held back until you press Show pictures, as in Mail.

A letter of an archived mailbox that you open in Mail itself is read from the archive too — no mail server is asked.

Download everything

In the archive's settings, Make the zip builds one zip of all your letters: a .eml file per letter, in folders mailbox / folder / date subject.eml. Any mail program (Thunderbird, Apple Mail, Outlook) opens them or imports the folders. A large archive takes a while; the button Download the zip appears when it is ready, and the zip is kept three days.

Your key

Every letter is encrypted with a key of your own (AES-256), different for every person.

  • Your key is given only through two-step verification. Press Show the key and confirm it is you right now: the code of your authenticator app, your passkey, or a code sent by e-mail — whichever you set up. Without two-step verification the section says so and leads to Profile → Security to switch it on (Two-step verification).
  • After the check you see the key (32 bytes, written in base64) with Copy, and for ten minutes Download the key file. A short fingerprint tells keys apart without showing them. Six wrong codes = wait a quarter of an hour.
  • The key is never shown to somebody working in your account through "Login as".
  • With the key you can open the archive's files without the site. Keep it somewhere safe: whoever has it and the files can read your letters.

Open the files yourself

One letter = one file ….stja:

Bytes What
5 the letters STJA1
12 the IV (nonce)
16 the authentication tag
the rest the encrypted data
  1. Decrypt the data with AES-256-GCM: your key, that IV and that tag, no associated data.
  2. Unpack the result with gzip.
  3. What you get is the letter — save it as .eml.

In Python (pip install cryptography):

import base64, gzip, sys
from cryptography.hazmat.primitives.ciphers.aead import AESGCM

key = base64.b64decode("YOUR KEY")          # Mail settings → Archive → Your key
data = open(sys.argv[1], "rb").read()       # a .stja file of the archive
assert data[:5] == b"STJA1"
iv, tag, ciphertext = data[5:17], data[17:33], data[33:]
letter = gzip.decompress(AESGCM(key).decrypt(iv, ciphertext + tag, None))
open(sys.argv[1] + ".eml", "wb").write(letter)

Usually you do not need this: the zip above already holds the letters opened.

If the mail server loses your letters

Nothing the mail server does deletes letters from your archive:

  • A letter deleted on the mail server — by you, by a program, by the mail service — stays in the archive, marked Not on the mail server. So does a whole folder deleted there, and the mailbox of a service that closed or locked you out: the archive reads from our disk, not from the mail server.
  • Emptying the trash changes nothing here: the trash is not archived, and a letter you deleted was already kept from the folder it lay in.
  • When many letters vanish at once from a mailbox's mail server (50 or more, and at least a fifth of them — or 1,000), you get a notice: how many, from which mailbox, and that every one of them is kept. The notice waits a day so that a mail server that is only down for a while or being moved does not alarm you — if the letters come back within that day, nothing is said and nothing is marked. Open the archive and tick Only those gone from the mail server to see the ones that really went. A letter that later reappears on the mail server stops being marked gone by itself.

Switch it off, delete it

  • Switching Keep every letter off stops adding letters; what is kept stays.
  • Delete the archive beside a mailbox first asks you to confirm it is you — your two-step verification, or a code sent to your e-mail address. Then the mailbox's archive is switched off at once, and its letters are deleted 30 days later: until then the mailbox shows Will be deleted on … with Cancel the deletion, and a letter tells you the date (if it was not you, cancel it and change your password). After the 30 days the letters and their files are gone for good. The letters on the mail server are not touched.
  • An unpaid archive (the subscription paused for want of money on your balance, or the archive switched off while letters stay — and the archive not free for your account) is deleted a month later. You are warned 28, 7 and 1 day before, and the archive's section shows the date in red. Top up the balance and the subscription starts again by itself; you can also download the zip before.
  • A mailbox removed from Mail keeps its archive; it is listed under the mailboxes with its own Delete the archive.
  • Deleting your account deletes the archive and your key.

If something does not work

  • "The archive of letters is not open for your account" — the function is not given to your account yet.
  • Paused until … — the mail server's daily limit; nothing to do, it goes on by itself.
  • A red line under a mailbox — the mail server refused the connection (a changed password, an expired sign-in). Fix the mailbox in Mailboxes; the archive goes on afterwards.
  • A very large letter (over 60 MB) is not kept; the rest of the mailbox is.