-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(path): Account path argument can take either a path string, or a…
…n array of strings to monitor multiple folders instead of just one
- Loading branch information
Showing
5 changed files
with
103 additions
and
29 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
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 |
---|---|---|
|
@@ -155,7 +155,8 @@ const { | |
tokenRestrictionsSchema, | ||
accountIdSchema, | ||
ipSchema, | ||
accountCountersSchema | ||
accountCountersSchema, | ||
accountPathSchema | ||
} = require('../lib/schemas'); | ||
|
||
const FLAG_SORT_ORDER = ['\\Inbox', '\\Flagged', '\\Sent', '\\Drafts', '\\All', '\\Archive', '\\Junk', '\\Trash']; | ||
|
@@ -2118,7 +2119,7 @@ When making API calls remember that requests against the same account are queued | |
name: Joi.string().max(256).required().example('My Email Account').description('Display name for the account'), | ||
email: Joi.string().empty('').email().example('[email protected]').description('Default email address of the account'), | ||
|
||
path: Joi.string().empty('').max(1024).default('*').example('INBOX').description('Check changes only on selected path'), | ||
path: accountPathSchema, | ||
|
||
subconnections: accountSchemas.subconnections, | ||
|
||
|
@@ -2371,7 +2372,7 @@ When making API calls remember that requests against the same account are queued | |
name: Joi.string().max(256).example('My Email Account').description('Display name for the account'), | ||
email: Joi.string().empty('').email().example('[email protected]').description('Default email address of the account'), | ||
|
||
path: Joi.string().empty('').max(1024).default('*').example('INBOX').description('Check changes only on selected path'), | ||
path: accountPathSchema, | ||
|
||
subconnections: accountSchemas.subconnections, | ||
|
||
|
@@ -2958,7 +2959,7 @@ When making API calls remember that requests against the same account are queued | |
notifyFrom: accountSchemas.notifyFrom, | ||
syncFrom: accountSchemas.syncFrom, | ||
|
||
path: Joi.string().empty('').max(1024).default('*').example('INBOX').description('Check changes only on selected path'), | ||
path: accountPathSchema, | ||
|
||
subconnections: accountSchemas.subconnections, | ||
|
||
|