Added ability to locate rmassconversation and last message for event id/message id matching

This commit is contained in:
Lyncoln
2026-10-18 00:19:42 -04:00
parent 8f721ee44a
commit 9b09b9b053
2 changed files with 86 additions and 0 deletions
@@ -0,0 +1,49 @@
name = "Get messages"
kind = "action"
alias = "getmessage"
showstatus = True
isrequest = True
method = "GET"
#Used to resolve path for recursive handling. Path location must match the location of the recursiveset data from pullmessage operation
resolve = {
"get": {
"path": ["lastmessage", 0, "content", "com.loxthelion.rmass_message_id"],
},
}
#To add resolution suffix, second item must be a dictionary. References the "path" library under resolved
path = [
"https://rentmasseur.com/api/v1/mailbox/",
{"resolved": "path"},
]
headers = {
"Authorization": {
"output": "access_token",
"prefix": "Bearer ",
},
}
outputs = {
"rmasslastmessages": "messages",
}
#outputs["rmasslastmessage"][0]["id"] is where we get our messageid
select = {
"source": "rmasslastmessages",
"include": {
"key": "senderId",
"value": 238302,
},
"exclude": {
"key": {"currentFolder"},
"value": 1,
}
}