{"action":"closed","issue":{"url":"https://api.github.com/repos/backdrop-contrib/mailsystem/issues/5","labels_url":"https://api.github.com/repos/backdrop-contrib/mailsystem/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/backdrop-contrib/mailsystem/issues/5/comments","events_url":"https://api.github.com/repos/backdrop-contrib/mailsystem/issues/5/events","html_url":"https://github.com/backdrop-contrib/mailsystem/issues/5","id":122455444,"number":5,"title":"Adapt use of config file","user":{"login":"Graham-72","id":10559274,"avatar_url":"https://avatars.githubusercontent.com/u/10559274?v=3","gravatar_id":"","url":"https://api.github.com/users/Graham-72","html_url":"https://github.com/Graham-72","followers_url":"https://api.github.com/users/Graham-72/followers","following_url":"https://api.github.com/users/Graham-72/following{/other_user}","gists_url":"https://api.github.com/users/Graham-72/gists{/gist_id}","starred_url":"https://api.github.com/users/Graham-72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Graham-72/subscriptions","organizations_url":"https://api.github.com/users/Graham-72/orgs","repos_url":"https://api.github.com/users/Graham-72/repos","events_url":"https://api.github.com/users/Graham-72/events{/privacy}","received_events_url":"https://api.github.com/users/Graham-72/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-16T08:49:41Z","updated_at":"2016-01-07T16:49:42Z","closed_at":"2016-01-07T16:49:42Z","body":"My proposal uses a config array mail_system_options to store the currently available mail systems. It uses another array mail_system to store the current choice of mail class for each system.\r\n\r\nmailsystem.module provides the mechanism that identifies the currently available mail systems by finding their classes.\r\n\r\nmailsystem.admin.inc provides the means for choosing which mail system is used for each module requiring mail services.\r\n\r\nI have temporarily removed the Drupal module's option for using mailsystem.admin.inc to add manually a new mail module and class because this requires more consideration. At the moment, any new mail module, provided it includes 'MailSystem' in its class name, will be discovered by mailsystem.module.\r\n\r\nPR #2 deals with some of this; another PR follows shortly.\r\n\r\n"}}