Mail rehearsal
A rehearsal mail provider kept in the workspace's world/ folder, speaking the same mail contract a real one does. It sends nothing anywhere; the world simulator answers as the people written to.
7 implemented operations
connector.yamlinbox.readRead what arrived after a cursor, oldest first, at most limit of it, with the cursor to read on from. Each is a mail slot event, the Standard Webhooks envelope {id, type, timestamp, data} as the provider delivered it, of type email.received, email.bounced or email.complained. An unsubscribe is a suppression, never mail.mail.read
- LocalReadyA trusted host process runs it.
- runx scope
mail.read- Target
mailsim://inbox- Credentials
- Any of
api_key - Local implementation
- Trusted host process:
tool mailsim.mail
| Field and constraints | Type / values | Required |
|---|---|---|
afterPattern: ^[0-9]+$Max. 64 characters | string | No |
limitMinimum 1Maximum 500 | integer | No |
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"properties": {
"after": {
"type": "string",
"pattern": "^[0-9]+$",
"maxLength": 64
},
"limit": {
"type": "integer",
"maximum": 500,
"minimum": 1
}
},
"additionalProperties": false
}Result fields eventscursormore
Operation digest sha256:e59e2c0ab90ec0e3da662a22f3f78e96e9814e6984caa6a2d89182a086333dd6Implementation sha256:a3ff5ca79a556cbbcc3cb8a2f20ac444141d5a70e736de98c4fced0c748bdc78
thread.readRead one thread's messages, both ways, oldest first.mail.read
- LocalReadyA trusted host process runs it.
- runx scope
mail.read- Target
{"$argument":"/thread_id"}- Credentials
- Any of
api_key - Local implementation
- Trusted host process:
tool mailsim.mail
| Field and constraints | Type / values | Required |
|---|---|---|
thread_idMin. 1 characterMax. 255 characters | string | Yes |
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"required": [
"thread_id"
],
"properties": {
"thread_id": {
"type": "string",
"maxLength": 255,
"minLength": 1
}
},
"additionalProperties": false
}Result fields thread_idmessages
Operation digest sha256:deec23448a47a52a73765b11c84d6a4afb82126a969e4300e382b2667b900524Implementation sha256:a3ff5ca79a556cbbcc3cb8a2f20ac444141d5a70e736de98c4fced0c748bdc78
message.readRead one sent message by the key it was sent under or its id, with its status, which is sent, since mailsim sends at once. No item means no message has that key.mail.read
- LocalReadyA trusted host process runs it.
- runx scope
mail.read- Target
mailsim://messages- Credentials
- Any of
api_key - Local implementation
- Trusted host process:
tool mailsim.mail
| Field and constraints | Type / values | Required |
|---|---|---|
| exactly one of 2 shapes | |
| Shape 1 | any | |
| Shape 2 | any |
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"oneOf": [
{
"required": [
"key"
]
},
{
"required": [
"id"
]
}
],
"properties": {
"id": {
"type": "string",
"maxLength": 255,
"minLength": 1
},
"key": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "The key the message was sent under: the send's idempotency key."
}
},
"additionalProperties": false
}Result fields item
Operation digest sha256:954407b95632981fde04a06709d2e78212485220bd192d071ea2bcdd2a6c9fcbImplementation sha256:a3ff5ca79a556cbbcc3cb8a2f20ac444141d5a70e736de98c4fced0c748bdc78
message.sendSend one email to one recipient, at once. One message per key, so a retry under the same key never sends twice. Refused when the recipient is suppressed, or has written since unless_inbound_since.mail.send
- LocalReadyA trusted host process runs it.Each call needs approval evidence or standing approval.
- runx scope
mail.send- Target
{"$argument":"/to"}- Credentials
- Any of
api_key - Repeats
enforced: The provider deduplicates by the idempotency key.- Local implementation
- Trusted host process:
tool mailsim.mail
| Field and constraints | Type / values | Required |
|---|---|---|
toPattern: ^[^\s<>@,;]+@[^\s<>@,;]+$Max. 320 characters | string | Yes |
bodyMin. 1 characterMax. 262144 characters | string | Yes |
subjectMin. 1 characterMax. 998 characters | string | Yes |
outreachA first contact | boolean | No |
reply_toPattern: ^[^\s<>@,;]+@[^\s<>@,;]+$Max. 320 characters | string | No |
from_nameMin. 1 characterMax. 255 characters | string | Yes |
from_emailPattern: ^[^\s<>@,;]+@[^\s<>@,;]+$Max. 320 characters | string | Yes |
in_reply_toPattern: ^<[^<>\s]+>$Max. 998 characters | string | No |
unless_inbound_sinceNot sent when the recipient has written since this time.Format: date-time | string | No |
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"required": [
"to",
"from_email",
"from_name",
"subject",
"body"
],
"properties": {
"to": {
"type": "string",
"pattern": "^[^\\s<>@,;]+@[^\\s<>@,;]+$",
"maxLength": 320
},
"body": {
"type": "string",
"maxLength": 262144,
"minLength": 1
},
"subject": {
"type": "string",
"maxLength": 998,
"minLength": 1
},
"outreach": {
"type": "boolean",
"description": "A first contact",
"or a follow-up to someone who hasn't written.": null
},
"reply_to": {
"type": "string",
"pattern": "^[^\\s<>@,;]+@[^\\s<>@,;]+$",
"maxLength": 320
},
"from_name": {
"type": "string",
"maxLength": 255,
"minLength": 1
},
"from_email": {
"type": "string",
"pattern": "^[^\\s<>@,;]+@[^\\s<>@,;]+$",
"maxLength": 320
},
"in_reply_to": {
"type": "string",
"pattern": "^<[^<>\\s]+>$",
"maxLength": 998
},
"unless_inbound_since": {
"type": "string",
"format": "date-time",
"description": "Not sent when the recipient has written since this time."
}
},
"additionalProperties": false
}Result fields idthread_idrfc_message_idtofrom_emailfrom_namereply_tosubjectbodyin_reply_tosent_atscheduled_for
Operation digest sha256:44bb48799f2216a7d8623ca450d4e2660035c71d2c62bf531620316239759013Implementation sha256:69c7b2dacf110393a0ed718386e776ec62ff92f602a7c6c008ab894dc264cab4
suppression.addSuppress one address for this sender, so nothing is sent to it again.mail.suppress
- LocalReadyA trusted host process runs it.
- runx scope
mail.suppress- Target
{"$argument":"/address"}- Credentials
- Any of
api_key - Repeats
enforced: The provider deduplicates by the idempotency key.- Local implementation
- Trusted host process:
tool mailsim.mail
| Field and constraints | Type / values | Required |
|---|---|---|
reason | "unsubscribe" · "complaint" · "bounce" | Yes |
addressPattern: ^[^\s<>@,;]+@[^\s<>@,;]+$Max. 320 characters | string | Yes |
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"required": [
"address",
"reason"
],
"properties": {
"reason": {
"enum": [
"unsubscribe",
"complaint",
"bounce"
]
},
"address": {
"type": "string",
"pattern": "^[^\\s<>@,;]+@[^\\s<>@,;]+$",
"maxLength": 320
}
},
"additionalProperties": false
}Result fields addresssuppressedreason
Operation digest sha256:75351a3fc6c6fa76550443f31cb6e304aae5f8088d4fad102d92baffb7d60fedImplementation sha256:4ecf8ea9452c857c4ce7e4f4d43a33faacef573c3b0fac6678fd974f63c0fb9a
eligibility.readWhether this sender may write to one address now, by the provider's policy, from the basis the caller shows for contacting it, and the evidence the verdict rests on.mail.read
- LocalReadyA trusted host process runs it.
- runx scope
mail.read- Target
{"$argument":"/address"}- Credentials
- Any of
api_key - Local implementation
- Trusted host process:
tool mailsim.mail
| Field and constraints | Type / values | Required |
|---|---|---|
basisOnly listed fields accepted | object | Yes |
basis. | "met" · "customer" · "opted_in" · "referred" · "published" | Yes |
basis.Max. 2000 characters | string | No |
addressPattern: ^[^\s<>@,;]+@[^\s<>@,;]+$Max. 320 characters | string | Yes |
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"required": [
"address",
"basis"
],
"properties": {
"basis": {
"type": "object",
"required": [
"kind"
],
"properties": {
"kind": {
"enum": [
"met",
"customer",
"opted_in",
"referred",
"published"
]
},
"evidence": {
"type": "string",
"maxLength": 2000
}
},
"additionalProperties": false
},
"address": {
"type": "string",
"pattern": "^[^\\s<>@,;]+@[^\\s<>@,;]+$",
"maxLength": 320
}
},
"additionalProperties": false
}Result fields addressstatuspolicy_idevidence_idsreason
Operation digest sha256:56a87552d800e0b3819866a5006880e268271b908eba1a68666c53644afe3441Implementation sha256:a3ff5ca79a556cbbcc3cb8a2f20ac444141d5a70e736de98c4fced0c748bdc78
suppression.readWhether the provider suppresses one address for this sender, and why.mail.read
- LocalReadyA trusted host process runs it.
- runx scope
mail.read- Target
{"$argument":"/address"}- Credentials
- Any of
api_key - Local implementation
- Trusted host process:
tool mailsim.mail
| Field and constraints | Type / values | Required |
|---|---|---|
addressPattern: ^[^\s<>@,;]+@[^\s<>@,;]+$Max. 320 characters | string | Yes |
Required fields apply within their containing object. Unlisted fields are rejected.
Full input schema
{
"type": "object",
"required": [
"address"
],
"properties": {
"address": {
"type": "string",
"pattern": "^[^\\s<>@,;]+@[^\\s<>@,;]+$",
"maxLength": 320
}
},
"additionalProperties": false
}Result fields addresssuppressedreason
Operation digest sha256:15b73b4c349943b29265da8c6f363ea5b2bc8a2ff7fa63d77c86d4c2599d770aImplementation sha256:a3ff5ca79a556cbbcc3cb8a2f20ac444141d5a70e736de98c4fced0c748bdc78
Authentication
Commands here are for runx 0.12.1.
Mail rehearsal accepts a stored credential.
- Stored credential
api_key - A
api_keywith one field:api_key(The rehearsal world's key, from world/key). Sent only tomailsim.local. Supply it through standard input in the project where the skill runs; runx stores the profile and selects it for this connector.runx connector use mailsim
Authentication methods describe what the provider requires. They do not imply runx supports every way the provider authenticates, and they do not grant access to your account.
Permissions
Each operation requires every runx scope it declares. The account or key behind an instance must also reach the target on Mail rehearsal’s side; setting one up adds no Mail rehearsal permissions.
Approval
These operations need approval evidence on every call, which a grant alone never replaces: message.send.
A stored credential may do everything its scopes allow. Add --scope to runx connector use --credential to narrow it.