{"action":"created","issue":{"url":"https://api.github.com/repos/fruux/Baikal/issues/603","repository_url":"https://api.github.com/repos/fruux/Baikal","labels_url":"https://api.github.com/repos/fruux/Baikal/issues/603/labels{/name}","comments_url":"https://api.github.com/repos/fruux/Baikal/issues/603/comments","events_url":"https://api.github.com/repos/fruux/Baikal/issues/603/events","html_url":"https://github.com/fruux/Baikal/issues/603","id":175405031,"number":603,"title":"Implement a SwiftMailer provider for Baïkal","user":{"login":"pr3d4t0r","id":148262,"avatar_url":"https://avatars.githubusercontent.com/u/148262?v=3","gravatar_id":"","url":"https://api.github.com/users/pr3d4t0r","html_url":"https://github.com/pr3d4t0r","followers_url":"https://api.github.com/users/pr3d4t0r/followers","following_url":"https://api.github.com/users/pr3d4t0r/following{/other_user}","gists_url":"https://api.github.com/users/pr3d4t0r/gists{/gist_id}","starred_url":"https://api.github.com/users/pr3d4t0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pr3d4t0r/subscriptions","organizations_url":"https://api.github.com/users/pr3d4t0r/orgs","repos_url":"https://api.github.com/users/pr3d4t0r/repos","events_url":"https://api.github.com/users/pr3d4t0r/events{/privacy}","received_events_url":"https://api.github.com/users/pr3d4t0r/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fruux/Baikal/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-07T03:30:25Z","updated_at":"2016-09-07T04:06:06Z","closed_at":null,"body":"Implement a SwiftMailer provider for Baïkal.\r\n\r\nThe current configuration only supports email dispatching through PHP mail(), which requires that a configured `/usr/sbin/sendmail` is installed in the host and configured as a message relay, or for Baïkal to be installed on the mail server itself.\r\n\r\nThe [SwiftMailer](http://swiftmailer.org/) provider should be configurable through Baïkal configuration and through environment variables to support LXC container deployments.\r\n\r\n## Pseudocode\r\n\r\n```python\r\n# Both of these assume that either SwiftMailer or sendmail + email relay\r\n# are configured.\r\nif 'BAIKAL_EMAIL_RELAY' in environment or 'emailRelay' in configuration:\r\n    useSwiftMailerForScheduling(anEvent)\r\nelse:\r\n    usePHPMailForScheduling(anEvent)\r\n```\r\n\r\nAssign this issue to **[pr3d4t0r](https://github.com/pr3d4t0r)** if it's accepted."},"comment":{"url":"https://api.github.com/repos/fruux/Baikal/issues/comments/245169225","html_url":"https://github.com/fruux/Baikal/issues/603#issuecomment-245169225","issue_url":"https://api.github.com/repos/fruux/Baikal/issues/603","id":245169225,"user":{"login":"pr3d4t0r","id":148262,"avatar_url":"https://avatars.githubusercontent.com/u/148262?v=3","gravatar_id":"","url":"https://api.github.com/users/pr3d4t0r","html_url":"https://github.com/pr3d4t0r","followers_url":"https://api.github.com/users/pr3d4t0r/followers","following_url":"https://api.github.com/users/pr3d4t0r/following{/other_user}","gists_url":"https://api.github.com/users/pr3d4t0r/gists{/gist_id}","starred_url":"https://api.github.com/users/pr3d4t0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pr3d4t0r/subscriptions","organizations_url":"https://api.github.com/users/pr3d4t0r/orgs","repos_url":"https://api.github.com/users/pr3d4t0r/repos","events_url":"https://api.github.com/users/pr3d4t0r/events{/privacy}","received_events_url":"https://api.github.com/users/pr3d4t0r/received_events","type":"User","site_admin":false},"created_at":"2016-09-07T04:06:06Z","updated_at":"2016-09-07T04:06:06Z","body":"## `config/`\r\n\r\nClarifying:  the primary settings will be defined in `config/`.\r\n\r\nFor _dockerization purposes only_, the simplest, safest way to productize the settings so that we can create standalone containers without having to build them every time, is by using environment variables during launch.  If these environment variables are present when the code at ENTRYPOINT starts, they will override the corresponding settings in `config/`.\r\n\r\nAdvanced users/sysadmins will **always** have the option to define their own settings as they see fit in `config/` and build them into custom/private Docker images.\r\n"}}
{"actor":{"display_login":"pr3d4t0r"}}