mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-02 21:52:34 +08:00
do not allow renaming INBOX
This commit is contained in:
parent
7cd3eb5a13
commit
ee6793c938
1 changed files with 3 additions and 0 deletions
|
@ -95,6 +95,9 @@ class MailboxHandler {
|
|||
if (!mailboxData) {
|
||||
return callback(null, 'NONEXISTENT');
|
||||
}
|
||||
if (mailboxData.path === 'INBOX') {
|
||||
return callback(null, 'CANNOT');
|
||||
}
|
||||
this.database.collection('mailboxes').findOne({
|
||||
user: mailboxData.user,
|
||||
path: newname
|
||||
|
|
Loading…
Reference in a new issue