Skip to main content

Module letters

Module letters 

Source
Expand description

Paper letters, for the window (docs/porch.md, “Paper letters”): the scans dropped in the inbox folder read in the background (no notification: they wait for the Porch’s window, as mail does), then each a card there: who, what, how much, by when; a task for its date, its appointment in the agenda, its scan filed with its project. The place is there before any scan: the folder they go to, opened or added to from the Porch, and whether this computer reads them (reader).

Structs§

LetterView 🔒
ProjectChoice 🔒
View 🔒

Constants§

READER_FRESH 🔒
How long an answer about the reading programs holds: one installed meanwhile is seen within it.
SCANS 🔒

Statics§

BUSY 🔒
MISSING 🔒
Why scans could not be read lately (no OCR program): said on the cards’ place.
READER 🔒
Whether this computer reads scans, and when that was asked: “” when it does, else how to install what reads them. None until the first tick asks.

Functions§

add 🔒
Scans chosen on this computer (a JSON array of file:// addresses, or of paths), copied into the folder they are read from: what happened, in a sentence. The copy is read at a coming minute, as a scanner’s file is; the chosen file stays where it was.
done 🔒
Done with it: its project set, its scan filed in letters/<year>/.
folder 🔒
The folder scans arrive in, made if it is not there yet; “” without one (no folder chosen and no notes folder), or when it cannot be made.
free_name 🔒
A name free in folder for a file named name: itself, else “scan (2).pdf”, “scan (3).pdf”…
inbox 🔒
The inbox: the folder chosen, else letters/inbox in the notes folder.
make_event 🔒
Its appointment in the agenda, an hour long, tied to its scan (filed first, so the tie holds).
make_task 🔒
A task for its date, in your usual list, tied to its scan and its project.
source_of 🔒
tick 🔒
The scans in the inbox not read yet, read; off the window’s thread. A phone reads none (docs/porch.md, “Paper letters”): a computer does, and the cards it makes reach the phone with your notes.
view 🔒
The letters not done with, as JSON.
with_letter 🔒