mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-04 07:02:45 +08:00
a0851a93c0
when mushing multiple messages at once
100 lines
1.3 KiB
JavaScript
100 lines
1.3 KiB
JavaScript
/* global db */
|
|
'use strict';
|
|
|
|
db.users.createIndex({
|
|
username: 1
|
|
});
|
|
|
|
db.mailboxes.createIndex({
|
|
username: 1
|
|
});
|
|
db.mailboxes.createIndex({
|
|
username: 1,
|
|
path: 1
|
|
});
|
|
db.mailboxes.createIndex({
|
|
username: 1,
|
|
subscribed: 1
|
|
});
|
|
|
|
db.messages.createIndex({
|
|
mailbox: 1
|
|
});
|
|
|
|
db.messages.createIndex({
|
|
mailbox: 1,
|
|
unseen: 1
|
|
});
|
|
db.messages.createIndex({
|
|
mailbox: 1,
|
|
uid: 1
|
|
});
|
|
db.messages.createIndex({
|
|
mailbox: 1,
|
|
uid: 1,
|
|
modseq: 1
|
|
});
|
|
db.messages.createIndex({
|
|
mailbox: 1,
|
|
flags: 1
|
|
});
|
|
|
|
db.messages.createIndex({
|
|
modseq: 1
|
|
});
|
|
|
|
db.messages.createIndex({
|
|
modseq: -1
|
|
});
|
|
|
|
db.messages.createIndex({
|
|
flags: 1
|
|
});
|
|
|
|
db.messages.createIndex({
|
|
internaldate: 1
|
|
});
|
|
db.messages.createIndex({
|
|
internaldate: -1
|
|
});
|
|
|
|
db.messages.createIndex({
|
|
headerdate: 1
|
|
});
|
|
db.messages.createIndex({
|
|
headerdate: -1
|
|
});
|
|
|
|
db.messages.createIndex({
|
|
size: 1
|
|
});
|
|
db.messages.createIndex({
|
|
size: -1
|
|
});
|
|
|
|
db.messages.createIndex({
|
|
uid: 1
|
|
});
|
|
db.messages.createIndex({
|
|
uid: -1
|
|
});
|
|
|
|
db['attachments.files'].createIndex({
|
|
'metadata.messages': 1
|
|
});
|
|
|
|
db.journal.createIndex({
|
|
mailbox: 1,
|
|
modseq: 1
|
|
});
|
|
|
|
db.journal.createIndex({
|
|
mailbox: 1,
|
|
modseq: -1
|
|
});
|
|
|
|
db.journal.createIndex({
|
|
created: 1
|
|
}, {
|
|
expireAfterSeconds: 21600
|
|
});
|