mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-09-13 00:24:49 +08:00
allow to provide default target mailbox for stored messages
This commit is contained in:
parent
8401b5ba7a
commit
2d4cc85257
2 changed files with 7 additions and 1 deletions
|
@ -181,6 +181,12 @@ class FilterHandler {
|
|||
let mailboxQueryKey = 'path';
|
||||
let mailboxQueryValue = 'INBOX';
|
||||
|
||||
// allow to define mailbox
|
||||
if (options.mailbox && tools.isId(options.mailbox)) {
|
||||
mailboxQueryKey = 'mailbox';
|
||||
mailboxQueryValue = new ObjectID(options.mailbox);
|
||||
}
|
||||
|
||||
let meta = options.meta || {};
|
||||
|
||||
let parsedHeader = (prepared.mimeTree.parsedHeader && prepared.mimeTree.parsedHeader) || {};
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
"axios": "0.21.1",
|
||||
"base32.js": "0.1.0",
|
||||
"bcryptjs": "2.4.3",
|
||||
"bull": "3.22.0",
|
||||
"bull": "3.22.1",
|
||||
"gelf": "2.0.1",
|
||||
"generate-password": "1.6.0",
|
||||
"he": "1.2.0",
|
||||
|
|
Loading…
Add table
Reference in a new issue