Repository navigation
v0.2.0-alpha.2
Pre-releaseThis is a pre-release for tests. go install ...@latest and the
"Latest" release on GitHub stay at 0.1.0. The output of every tool
changed: a client of 0.2.0-alpha.1 that reads a result by its keys
must change with it.
Known issue: S/MIME verify needs OpenSSL 3.x. On a system with
OpenSSL 4, the signature status of an S/MIME message is unsupported.
Set openssl_path to an OpenSSL 3 program.
Removed
These changes break a client of 0.2.0-alpha.1 that reads a result by
its keys, or that sends a value that the server now refuses. The input
fields of the tools did not change. Every result has the new first key
_fence. Each text that a sender, a mail server or the model controls
is now under a key untrusted, in a fence. The Security section gives
the three exceptions.
Output keys that were removed or moved, by tool:
search: each row lostemailandfolder. The sender, the
subject and the preview areuntrusted.from,untrusted.subject
anduntrusted.preview. The folder isfolder_refand
untrusted.folder. Labels and keywords leftflagsand are in
untrusted.labels.flagsholds only the wordsunread,
starred,answeredanddraft, with a space between them.
errors[].erroris a class word, not the error text. The text is in
errors[].untrusted.detail.read: each message lostheaders,bodyandfolder. The
headers areuntrusted.from,untrusted.to,untrusted.cc,
untrusted.reply_toanduntrusted.subject, and a thread row of a
message that the call did not name hasuntrusted.preview. The body
isuntrusted.body. The folder isfolder_refand
untrusted.folder. Labels leftflagsand are in
untrusted.labels.untrusted.to,untrusted.cc,
untrusted.reply_toanduntrusted.labelsare lists with one fence
for each entry. Each attachment lostfile: the file name and
the media type areuntrusted.nameanduntrusted.type. An
attachmentrefthat is not digits and dots is now=and the hex
of the part id.decrypt:bodyis nowuntrusted.body. Each attachment lost
fileandtype: they areuntrusted.nameanduntrusted.type.attachment:pathis gone.diris the save root only,
untrusted.subdiris the path below the root (absent when the file
is in the root), anduntrusted.nameis the file name.export: each item offileslostpath. It hasdir,
untrusted.subdiranduntrusted.name, as inattachment.folders: each row lostname. The folder isfolder_refand
untrusted.name.gmail_settings: each filter lostfrom,to,subject,
query,add_labelsandremove_labels. They are under the
untrustedkey of the filter.vacationlostsubjectandbody.
They are undervacation.untrusted.signatureis now
untrusted.signature.bulk: eachsamplerow lostfromandsubject. They are under
theuntrustedkey of the row.modifyandbulk, the undo list (operationsandrecords):
summaryis a fixed text with action words and a count. The folder
and label names of the operation are inuntrusted.detailof the
row. A record of an earlier version has nosummary, and its whole
line is inuntrusted.detail.templates: each row lostsubject. It isuntrusted.subject.unsubscribe: each row losturl. It isuntrusted.url. Each row
has the new keyindex, the place of its id inids. The words of
methodandstatushave_in place of-and of the space:
one_click,draft_saved,see_link,not_authenticatedand
no_header.send:idis present only when the provider gives a Message-ID
(<...@...>). No provider gives one today, so a Gmail or JMAP result
no longer hasid.export: the file name comes from the new form of the message id.
An IMAP message that was1700000001.4211.INBOX.emlis now
1700000001-4211-494e424f58.eml.- Keys that can now be absent:
dateof asearchrow and of aread
message,idof areadmessage, ofdecrypt, of abulksample
row and of anunsubscriberow, andrefof areadattachment
(absent for a part id of more than 256 bytes). draft: the identity sentence ofnoteno longer holds the From
address. It gives the number of the rule that picked the address,
and the address is inuntrusted.detail.readanddecrypt: asignature.fingerprintof fewer than 8 hex
digits is left out.- Every tool:
noteholds only texts from a fixed set, and the parts
join with"; ". A provider text that matches no such text becomes
note withheld. Provider text that a note names by its class word
is inuntrusted.detail. - Every tool: an IMAP or Outlook message id has the new form
<uidvalidity>-<uid>-<hex of the folder name>. The old form still
works as input. - Every tool: an error result is no longer the plain error text. Its
first line is_fence: <nonce>and its second line is
error: <class>. The class is one oftimeout,canceled,
unknown_account,needs_auth,invalid_input,not_found,
refused,limit,unavailable,output_refused,internaland
error. A fixed text of the server can come next. All other error
text is in one fence after it. Only when the server cannot make a
nonce, the error iserror: internalwith no_fenceline.
Values that the server now refuses:
- A result with a string that breaks its rule:
output_refused, and
no part of the result is sent. - A folder value that starts with
=and is not a validfolder_ref
(=and 2 to 1024 lowercase hex digits), infolderofsearch
andbulk,move_toofmodifyandbulk, and thenameof a
foldersrename or delete:invalid_input. Before, the value was a
folder name. - A new folder name (the
nameof afolderscreate,new_nameof a
rename) that starts with=, also after spaces, or that holds fence
marker text, a hidden character or a control character:
invalid_input. move_toofmodifyandbulk, and a name ofadd_labelsof
modify, that would make a folder or label with such a name:
invalid_input, unless a folder or label with that name exists.- An
attachmentrefthat starts with=and is not=and 2 to
512 lowercase hex digits:invalid_input. - An account alias of more than 64 characters: the server refuses
accounts.toml, andaccount add,account testand
identities detectrefuse the alias.account removestill takes
it. - A
templatessave with a name of more than 64 characters:
invalid_input. Delete and draft still take such a name. A list
leaves it out and says so innote. - An
exportof an id that is not a valid message id:
invalid_input. Take the id from asearchrow. - A one-click
unsubscribein a client that cannot ask the human:
refused, unless[unsubscribe] allow_without_elicitationis true. - A Gmail
delete_filterin a client that cannot ask the human:
refused, unless[bulk] allow_without_elicitationis true. A
filter_idthat names no filter:not_found. - A
draftthat the mail server saves with an id in a form that the
server does not accept: an error with the classerror. The draft
is saved. - An address, identity name,
reply_matchentry or save root from
your own setup that holds a character that the check refuses:
output_refusedon the result that shows it.
Security
- Every tool result has two zones. The first field
_fenceholds a
nonce of 64 bits that is new for each response. Each string that a
sender controls sits under the keyuntrusted, in a fence marked
[UNTRUSTED_<nonce>]. A sender cannot guess the nonce, so a forged
marker no longer matches. - Three values are outside this rule. On the newer protocol, a result
that asks the human a question (send,bulk,unsubscribe,
gmail_settings) has no_fence, and its question can show sender
text with no fence, because the human reads it. A template name is text
that the model chose at the save, and it shows outside the fence in
thetemplateslist: it has at most 64 letters, digits,-and
_. On Gmail and JMAP, an id that the call gave comes back outside
the fence in amodifyrow with the stategoneand in an
unsubscriberow: it has at most 256 letters, digits,-and_. - Every other string in a result must match a closed grammar. A runtime
gate checks this on each result. A result that breaks a rule is
refused with the error classoutput_refused. - Error results start with the line
_fence: <nonce>. Folder names no
longer appear in ids or in plain fields. unsubscribeasks the human one question before it sends a
one-click POST. The question shows the number of POSTs and the host
of each. A decline sends no POST and gives each one-click row the
statusdeclinedand its link. A client that cannot ask gets a
refusal, unless the new key[unsubscribe] allow_without_elicitation
is true. The[bulk]key does not cover this question.- The Gmail
delete_filterasks the human first. The question shows
the filter id and the criteria and actions of the filter. A
filter_idthat names no filter gets the classnot_found, and
nobody is asked. The[bulk]keyallow_without_elicitationalso
covers this question. - The
dirof anattachmentorexportresult holds only the
allowed save root. The path below the root that the call chose is in
untrusted.subdir, inside a fence. A mail could ask the model to save
into a directory whose name is an instruction; that name no longer
shows outside a fence. - A new folder name must not start with
=:foldersrefuses such a
createnameor renamenew_namewith the classinvalid_input.
These two fields take nofolder_ref. move_toofmodifyandbulk, and each name ofadd_labelsof
modify, must name a folder or label that exists when the name
starts with=, or holds fence marker text, a hidden character or a
control character. This applies to a plain name, a fenced name and a
folder_ref. Else the call fails with the classinvalid_input
before it changes a message. So a move or a label cannot make such a
Gmail label. On IMAP and JMAP such a keyword inadd_labelsis
refused unless a folder has the same name.
Changed
modifyremoves the spaces at the start and the end ofmove_to,
asbulkdoes. Amove_toofINBOXnow moves to INBOX, also at
theclassifylevel. A new folder name that starts with=after
spaces is refused.- The output shape of every tool changed. Sender text moved under
untrusted. A model that reads a result must read both zones. - The IMAP and Outlook message id is now
<uidvalidity>-<uid>-<hex of the folder name>. The old form
<uidvalidity>.<uid>.<folder>still works as input. - A folder shows as
folder_ref(=and hex of the name) plus the
name underuntrusted.folder. Input fields that name an existing
folder accept a name or afolder_ref. - An IMAP or Outlook message in a folder whose name is longer than 512
bytes has no valid id, as a message whose id does not parse.
searchleaves such a message out and setspartial, andmodify
leaves it out ofapplied. Inread, in abulksample, in an
unsubscriberow and indecrypt, the message stays but has noid
(and inreadnofolder_ref). One such message does not make the
whole result fail. - The
in:term of a search query takes afolder_refon every
provider. A value that starts with=is read as afolder_ref. templatessave removes fence markers from the subject and the body
before it writes the file.modifyremoves them from each name of
add_labelsandremove_labels.- The fixed refusals of the server (send, idempotency key, Gmail
settings, templates, unsubscribe, folders, an unknown account) give
their guidance outside the fence, with a class word:refused,
invalid_input,limit,not_found,unknown_accountor
internal(a send that stopped before it is known if the mail
left). Model
input that a refusal names, such as an alias or a template name, is
in a fence after the text. Some texts changed: the send limit gives
the account and the wait in the fenced part. - Text from your own setup (the addresses, identity names and
reply_matchentries ofaccounts.toml, and the save roots) is
checked free text, not a closed grammar. It must have no control
character, no line or paragraph separator (U+2028, U+2029), no
hidden character, no character that shows no glyph (such as a
variation selector or U+2800), no fence marker and no chat template
token, and it need not be in NFKC form, so a name such as
ACME™ Supportpasses. A value that fails givesoutput_refused. - The byte budgets are larger, because the new form is longer: the
tools/listreply with every toolset on is at most 8704 B (was
8192 B), the server instructions are at most 1024 B (was 640 B), and
the stripped release binary is at most 16,000,000 B (was
15,600,000 B).
Fixed
- A Gmail settings change that the human accepts no longer ends with
error: internalafter Gmail made the change. The fault came with the
two-zone form and was in no release. attachmentdecodes therefthatreadgives as=and hex for a
part id that is not digits and dots, for example a JMAP part id. Such
an attachment can be saved again. Arefthat starts with=and is
not=and 2 to 512 lowercase hex digits is refused with the class
invalid_input. The fault came with the two-zone form and was in no
release.folderscreate, rename and delete: when the change is done but the
folder list after it cannot be read, the call is a success. The
folderslist is empty, the newnotesays that the change is done
and gives the error class, and the error text is in
untrusted.detail. Before, the call gave an error, so a retry could
fail or make a second folder.- A plain folder or label name with a hidden character (a zero width
non-joiner in a Persian label, for example) reaches the mail server
unchanged, infolderofsearchandbulk,move_toofmodify
andbulk, thenameof afoldersrename or delete, and
add_labelsandremove_labelsofmodify. The server removed
these characters, so the call acted on another folder or made a new
Gmail label. The fault came with the two-zone form and was in no
release. - The setup page removes an account whose alias has more than 64
characters, asaccount removedoes.