-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fixed outbound smtp edge case error issues, added email for rat…
…e limiting, fixed ENOTFOUND issue with check SMTP job, added job to fix pending emails, sync locales, sync translations
- Loading branch information
Showing
41 changed files
with
281 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* Copyright (c) Forward Email LLC | ||
* SPDX-License-Identifier: BUSL-1.1 | ||
*/ | ||
|
||
async function uploadAliasMbox() { | ||
throw new Error('Coming soon'); | ||
/* | ||
const redirectTo = ctx.state.l( | ||
`/my-account/domains/${ctx.state.domain.name}/aliases` | ||
); | ||
try { | ||
// ensure the size is not more than 2 GB | ||
// store the file to the server | ||
// | ||
// copy the file to the sqlite server in the background | ||
// once it's done then fire a websocket request to parse payload | ||
// which will then kick off the mbox import and email the user once done | ||
// | ||
} catch (err) { | ||
if (err && err.isBoom) throw err; | ||
if (isErrorConstructorName(err, 'ValidationError')) throw err; | ||
ctx.logger.fatal(err); | ||
ctx.flash('error', ctx.translate('UNKNOWN_ERROR')); | ||
const redirectTo = ctx.state.l( | ||
`/my-account/domains/${ctx.state.domain.name}/aliases` | ||
); | ||
if (ctx.accepts('html')) ctx.redirect(redirectTo); | ||
else ctx.body = { redirectTo }; | ||
} | ||
*/ | ||
} | ||
|
||
module.exports = uploadAliasMbox; |
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
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
Oops, something went wrong.