This commit is contained in:
Andris Reinman 2018-12-04 15:37:56 +02:00
parent d931b7db34
commit 0d8255a809
5 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
define({ "name": "wildduck", "version": "1.0.0", "description": "WildDuck API docs", "title": "WildDuck API", "url": "https://api.wildduck.email", "sampleUrl": false, "defaultVersion": "0.0.0", "apidoc": "0.3.0", "generator": { "name": "apidoc", "time": "2018-12-04T12:45:09.047Z", "url": "http://apidocjs.com", "version": "0.17.7" } });
define({ "name": "wildduck", "version": "1.0.0", "description": "WildDuck API docs", "title": "WildDuck API", "url": "https://api.wildduck.email", "sampleUrl": false, "defaultVersion": "0.0.0", "apidoc": "0.3.0", "generator": { "name": "apidoc", "time": "2018-12-04T13:37:52.001Z", "url": "http://apidocjs.com", "version": "0.17.7" } });

View file

@ -1 +1 @@
{ "name": "wildduck", "version": "1.0.0", "description": "WildDuck API docs", "title": "WildDuck API", "url": "https://api.wildduck.email", "sampleUrl": false, "defaultVersion": "0.0.0", "apidoc": "0.3.0", "generator": { "name": "apidoc", "time": "2018-12-04T12:45:09.047Z", "url": "http://apidocjs.com", "version": "0.17.7" } }
{ "name": "wildduck", "version": "1.0.0", "description": "WildDuck API docs", "title": "WildDuck API", "url": "https://api.wildduck.email", "sampleUrl": false, "defaultVersion": "0.0.0", "apidoc": "0.3.0", "generator": { "name": "apidoc", "time": "2018-12-04T13:37:52.001Z", "url": "http://apidocjs.com", "version": "0.17.7" } }

View file

@ -2247,7 +2247,7 @@ module.exports = (db, server, messageHandler, userHandler) => {
if (referencedMessage.references) {
extraHeaders.push({ key: 'References', value: referencedMessage.references });
}
extraAttachments = referencedMessage.attachments;
extraAttachments = referencedMessage.attachments || [];
result.value.draft = true; // only draft messages can reference to another message
}
@ -2613,7 +2613,7 @@ module.exports = (db, server, messageHandler, userHandler) => {
);
/**
* @api {post} /users/:user/mailboxes/:mailbox/messages/:message/submit Submit a Draft Message
* @api {post} /users/:user/mailboxes/:mailbox/messages/:message/submit Submit Draft for delivery
* @apiName SubmitStoredMessage
* @apiGroup Messages
* @apiDescription This method allows to submit a draft message for delivery. Draft is moved to Sent mail folder.