$params['maxtime'] = $this->Request['maxtime'];
}
if ($this->Request->contains('folder') && $misc->isValidFilename($this->Request['folder'])) {
- $params['folder'] = $this->Request['folder'];
+ $params['foldername'] = $this->Request['folder'];
}
if ($this->Request->contains('tags') && $misc->isValidName($this->Request['tags'])) {
$params['tags'] = $this->Request['tags'];
$params['maxsize'] = $this->Request['maxsize'];
}
if ($this->Request->contains('conversationid') && $misc->isValidNameExt($this->Request['conversationid'])) {
- $params['conversationid'] = $this->Request['conversationid'];
+ $params['conversationid'] = $this->Request['conversationid'];
}
+ if ($this->Request->contains('subject')) {
+ $params['subject'] = $this->Request['subject'];
+ }
+ if ($this->Request->contains('bodypreview')) {
+ $params['bodypreview'] = $this->Request['bodypreview'];
+ }
+ if ($this->Request->contains('hasattachment') && $misc->isValidBooleanTrue($this->Request['hasattachment'])) {
+ $params['hasattachment'] = $this->Request['hasattachment'];
+ }
+
$out = $this->getJSONOutput($params);
$output = [];
"type": "string"
}
},
+ {
+ "name": "subject",
+ "in": "query",
+ "required": false,
+ "description": "Email subject",
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "bodypreview",
+ "in": "query",
+ "required": false,
+ "description": "Email body preview",
+ "schema": {
+ "type": "string"
+ }
+ },
{
"name": "minsize",
"in": "query",
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "hasattachment",
+ "in": "query",
+ "required": false,
+ "description": "Email has attachments",
+ "schema": {
+ "type": "boolean"
+ }
}
]
}