updated files

This commit is contained in:
NatureFreshMilk 2019-09-16 08:15:43 +02:00
parent ca88374fbd
commit 74b18f38eb
7 changed files with 90 additions and 95 deletions

9
api.md
View file

@ -4,8 +4,8 @@ The mail format in the api hooks
```lua
mail = {
sender = "source name",
receiver = "destination name",
src = "source name",
dst = "destination name",
subject = "subject line",
body = "mail body",
-- 8 attachments max
@ -22,8 +22,8 @@ mail.send("source name", "destination name", "subject line", "mail body")
New variant (1.1+)
```lua
mail.send({
sender = "source name",
receiver = "destination name",
src = "source name",
dst = "destination name",
subject = "subject line",
body = "mail body"
})
@ -47,7 +47,6 @@ The mail format on-disk
[{
"unread": true,
"sender": "sender name",
"receiver": "receiver name",
"subject": "subject name",
"body": "main\nmultiline\nbody",
"time": 1551258349,