Files
rmmanager/plugins/rmass/actions/pullmessagelist.py
T
2026-10-12 11:28:07 -04:00

53 lines
823 B
Python

name = "Get message list"
kind = "action"
id = "getmessagelist"
showstatus = True
#skipstep = {
# "checkavailable": "validTo >= 3600"
#}
#availabletime = int(os.environ.get("AVAILABLE_DURATION",3))
#duration = availabletime - 1
#keys = [
# {
# "keytitle": "option",
# "keyvalue": 1,
# },
# {
# "keytitle": "duration",
# "keyvalue": duration,
# },
#]
method = "GET"
#path = "https://rentmasseur.com/api/v1/mailbox?page=1&folder=1&sort=1"
path = "https://rentmasseur.com/api/v1/mailbox"
headers = {
"Authorization": {
"output": "access_token",
"prefix": "Bearer ",
},
}
select = {
"source": "emails",
"selectmethod": "exclude",
"key": "unread",
"value": 0,
}
outputs = {
"emails": "emails"
}
#prints = {
# "messageid": "id"
#}