snappymail
snappymail copied to clipboard
Create Nextcloud Deck cards from mail
It would be great to create Nextcloud deck cards drictly from snappymail.
The following procedure would be good:
Select a mail
- Press the button in the actions: "Create deck card"
- Dialog for Board and Line opens
- Board and line is selected
- Open Deck Dialog? No; all ends YES: Deck dialog opens to adjust the parameters
- Per default, the Card has the Mail-Body as text and Mail-Name as Title
It would be a good feature to assign Tasks directly.
API: https://deck.readthedocs.io/en/latest/API/
It will work like this:
- Get the boards
GET /nextcloud/apps/deck/boards
[
{
"title": "Personal",
"owner": {
"primaryKey": "mhxsolut",
"uid": "mhxsolut",
"displayname": "mhxsolut",
"type": 0
},
"color": "0087C5",
"archived": false,
"labels": [],
"acl": [],
"permissions": {
"PERMISSION_READ": true,
"PERMISSION_EDIT": true,
"PERMISSION_MANAGE": true,
"PERMISSION_SHARE": true
},
"users": [],
"shared": 0,
"stacks": [],
"deletedAt": 0,
"lastModified": 1710868220,
"settings": {
"notify-due": "assigned",
"calendar": true
},
"id": 1,
"ETag": "8d8cd38277cae0a2703c7f4a08895433"
}
]
- Get the stacks of the selected board
GET /nextcloud/apps/deck/stacks/{board.id}
[
{
"title": "To do",
"boardId": 1,
"deletedAt": 0,
"lastModified": 1710868475,
"cards": [],
"order": 1,
"id": 1,
"ETag": "d5a72d0df3787ca5a7bdfb91a799a826"
}
]
- Save the card
POST /nextcloud/apps/deck/cards
{
"boardId": 1,
"description": "card description",
"stackId": 1,
"title": "card title"
}