mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-03-03 19:33:36 +08:00
fixed broken api method to delete messages
This commit is contained in:
parent
ad7b7dc987
commit
8ed0c80fb5
2 changed files with 6 additions and 2 deletions
|
@ -36,9 +36,12 @@ function send() {
|
||||||
},
|
},
|
||||||
|
|
||||||
headers: {
|
headers: {
|
||||||
|
/*
|
||||||
|
// uncomment to send the messge to Junk
|
||||||
'X-Rspamd-Bar': '/',
|
'X-Rspamd-Bar': '/',
|
||||||
'X-Rspamd-Report': 'R_PARTS_DIFFER(0.5) MIME_GOOD(-0.1) R_DKIM_ALLOW(-0.2) R_SPF_ALLOW(-0.2)',
|
'X-Rspamd-Report': 'R_PARTS_DIFFER(0.5) MIME_GOOD(-0.1) R_DKIM_ALLOW(-0.2) R_SPF_ALLOW(-0.2)',
|
||||||
'X-Rspamd-Score': '22.6'
|
'X-Rspamd-Score': '22.6'
|
||||||
|
*/
|
||||||
},
|
},
|
||||||
|
|
||||||
from: 'Kärbes 🐧 <andris@kreata.ee>',
|
from: 'Kärbes 🐧 <andris@kreata.ee>',
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
// TODO: finish converting methods to async..await with ACL
|
||||||
|
|
||||||
const config = require('wild-config');
|
const config = require('wild-config');
|
||||||
const log = require('npmlog');
|
const log = require('npmlog');
|
||||||
const Joi = require('../joi');
|
const Joi = require('../joi');
|
||||||
|
@ -1810,7 +1812,7 @@ module.exports = (db, server, messageHandler) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (moveTo) {
|
if (moveTo) {
|
||||||
let result, info;
|
let info;
|
||||||
try {
|
try {
|
||||||
let data = await moveMessage({
|
let data = await moveMessage({
|
||||||
user,
|
user,
|
||||||
|
@ -1819,7 +1821,6 @@ module.exports = (db, server, messageHandler) => {
|
||||||
updates: result.value,
|
updates: result.value,
|
||||||
messageQuery
|
messageQuery
|
||||||
});
|
});
|
||||||
result = data.result;
|
|
||||||
info = data.info;
|
info = data.info;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
res.json({
|
res.json({
|
||||||
|
|
Loading…
Reference in a new issue