-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(special-use-flags): Added support for user-specified Archive spec…
…ial use tag
- Loading branch information
Showing
6 changed files
with
38 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -453,13 +453,18 @@ const imapSchema = { | |
junkMailPath: Joi.string() | ||
.allow(null) | ||
.max(1024) | ||
.example('Drafts') | ||
.example('Junk') | ||
.description("Folder for spam. By default the account's Junk Mail folder is used. Set to `null` to unset."), | ||
trashMailPath: Joi.string() | ||
.allow(null) | ||
.max(1024) | ||
.example('Drafts') | ||
.description("Folder for deleted emails. By default the account's Trash folder is used. Set to `null` to unset.") | ||
.example('Trash') | ||
.description("Folder for deleted emails. By default the account's Trash folder is used. Set to `null` to unset."), | ||
archiveMailPath: Joi.string() | ||
.allow(null) | ||
.max(1024) | ||
.example('Archive') | ||
.description("Folder for archived emails. By default the account's Archive folder is used. Set to `null` to unset.") | ||
}; | ||
|
||
const smtpSchema = { | ||
|
@@ -550,7 +555,14 @@ const oauth2Schema = { | |
expires: Joi.date().iso().example('2021-03-22T13:13:31.000Z').description('Token expiration date') | ||
}; | ||
|
||
const partialSchema = Joi.boolean() | ||
.example(false) | ||
.description('Set to `true` if you only want to update provided keys, by default the entire object is replaced') | ||
.default(false); | ||
|
||
const imapUpdateSchema = { | ||
partial: partialSchema, | ||
|
||
auth: Joi.object({ | ||
user: Joi.string().max(256).required().example('[email protected]').description('Account username'), | ||
pass: Joi.string() | ||
|
@@ -597,8 +609,6 @@ const imapUpdateSchema = { | |
|
||
disabled: Joi.boolean().example(false).description('Set to true to disable IMAP handling'), | ||
|
||
partial: Joi.boolean().example(false).description('Update only listed keys in the imap config').default(false), | ||
|
||
sentMailPath: Joi.string() | ||
.allow(null) | ||
.max(1024) | ||
|
@@ -613,16 +623,22 @@ const imapUpdateSchema = { | |
junkMailPath: Joi.string() | ||
.allow(null) | ||
.max(1024) | ||
.example('Drafts') | ||
.example('Junk') | ||
.description("Folder for spam. By default the account's Junk Mail folder is used. Set to `null` to unset."), | ||
trashMailPath: Joi.string() | ||
.allow(null) | ||
.max(1024) | ||
.example('Drafts') | ||
.description("Folder for deleted emails. By default the account's Trash folder is used. Set to `null` to unset.") | ||
.example('Trash') | ||
.description("Folder for deleted emails. By default the account's Trash folder is used. Set to `null` to unset."), | ||
archiveMailPath: Joi.string() | ||
.allow(null) | ||
.max(1024) | ||
.example('Archive') | ||
.description("Folder for archived emails. By default the account's Archive folder is used. Set to `null` to unset.") | ||
}; | ||
|
||
const smtpUpdateSchema = { | ||
partial: partialSchema, | ||
auth: Joi.object({ | ||
user: Joi.string().max(256).required().example('[email protected]').description('Account username'), | ||
pass: Joi.string() | ||
|
@@ -664,11 +680,12 @@ const smtpUpdateSchema = { | |
}) | ||
.unknown() | ||
.description('Optional TLS configuration') | ||
.label('TLS'), | ||
partial: Joi.boolean().example(false).description('Update only listed keys in the smtp config').default(false) | ||
.label('TLS') | ||
}; | ||
|
||
const oauth2UpdateSchema = { | ||
partial: partialSchema, | ||
|
||
authorize: Joi.boolean().example(false).description('Return a redirect link to the OAuth2 consent screen'), | ||
provider: Joi.string().max(256).example('gmail').description('OAuth provider'), | ||
|
||
|
@@ -695,9 +712,7 @@ const oauth2UpdateSchema = { | |
.description("Outloook account type. Either 'consumers', 'organizations', 'common' or an organizartion ID") | ||
.label('SupportedAccountTypes'), | ||
|
||
expires: Joi.date().iso().example('2021-03-22T13:13:31.000Z').description('Token expiration date'), | ||
|
||
partial: Joi.boolean().example(false).description('Update only listed keys in the oauth2 config').default(false) | ||
expires: Joi.date().iso().example('2021-03-22T13:13:31.000Z').description('Token expiration date') | ||
}; | ||
|
||
const attachmentSchema = Joi.object({ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,7 +216,7 @@ <h1>EmailEngine v2.37.7</h1><p>EmailEngine includes code from the following soft | |
</tr> | ||
<tr> | ||
<td><a href="https://npmjs.com/package/@eslint-community/regexpp">@eslint-community/regexpp</a></td> | ||
<td>4.9.1</td> | ||
<td>4.10.0</td> | ||
<td>MIT</td> | ||
<td>Toru Nagashima</td> | ||
<td></td> | ||
|
@@ -1566,7 +1566,7 @@ <h1>EmailEngine v2.37.7</h1><p>EmailEngine includes code from the following soft | |
</tr> | ||
<tr> | ||
<td><a href="https://npmjs.com/package/bullmq">bullmq</a></td> | ||
<td>4.12.5</td> | ||
<td>4.12.6</td> | ||
<td>MIT</td> | ||
<td>Taskforce.sh Inc.</td> | ||
<td></td> | ||
|
@@ -3815,7 +3815,7 @@ <h1>EmailEngine v2.37.7</h1><p>EmailEngine includes code from the following soft | |
</tr> | ||
<tr> | ||
<td><a href="https://npmjs.com/package/imapflow">imapflow</a></td> | ||
<td>1.0.144</td> | ||
<td>1.0.145</td> | ||
<td>MIT</td> | ||
<td>Postal Systems OÜ</td> | ||
<td></td> | ||
|
@@ -5945,16 +5945,6 @@ <h1>EmailEngine v2.37.7</h1><p>EmailEngine includes code from the following soft | |
</tr> | ||
<tr> | ||
<td><a href="https://npmjs.com/package/pino">pino</a></td> | ||
<td>8.15.1</td> | ||
<td>MIT</td> | ||
<td>Matteo Collina</td> | ||
<td>[email protected]</td> | ||
<td> | ||
<a href="https://github.com/pinojs/pino">github.com/pinojs/pino</a> | ||
</td | ||
</tr> | ||
<tr> | ||
<td><a href="https://npmjs.com/package/pino">pino</a></td> | ||
<td>8.16.0</td> | ||
<td>MIT</td> | ||
<td>Matteo Collina</td> | ||
|
@@ -7045,7 +7035,7 @@ <h1>EmailEngine v2.37.7</h1><p>EmailEngine includes code from the following soft | |
</tr> | ||
<tr> | ||
<td><a href="https://npmjs.com/package/swagger-ui-dist">swagger-ui-dist</a></td> | ||
<td>5.9.0</td> | ||
<td>5.9.1</td> | ||
<td>Apache-2.0</td> | ||
<td></td> | ||
<td></td> | ||
|