-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(notifications): add email client (#4002)
* feat(notifications): boilerplate for email client * chore(deps): add openssl to flake.nix * chore(notifications): some more boilerplate * chore(notifications): remove option on EMAIL_PASSWORD * chore(notifications): remove dependency on openssl * chore(notifications): add Email as new notification channel * chore(notifications): rename lettre to smtp * chore(notifications): remove Email from UserNotificationChannel * chore(notifications): pass email_executor config in notifications.yml * chore(notifications): remove password from notifications.yml * chore(notifications): complete the logic for sending email * chore(notifications): rename executor -> push_executor in app config * chore(notifications): provide default value of EMAIL_PASSWORD * chore(notifications): fix deps * chore(notifications): do not send emails * chore(notifications): rename messages * chore(notifications): add LocalizedEmail --------- Co-authored-by: Sam Peters <[email protected]>
- Loading branch information
1 parent
4a478df
commit 7143999
Showing
30 changed files
with
992 additions
and
85 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use crate::push_executor::PushExecutorConfig; | ||
use crate::{email_executor::EmailExecutorConfig, push_executor::PushExecutorConfig}; | ||
|
||
#[derive(Clone, Default, Serialize, Deserialize)] | ||
pub struct AppConfig { | ||
pub executor: PushExecutorConfig, | ||
pub push_executor: PushExecutorConfig, | ||
pub email_executor: EmailExecutorConfig, | ||
} |
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.