{"action":"created","issue":{"url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/124","labels_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/124/comments","events_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/124/events","html_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams/issues/124","id":55943377,"number":124,"title":"Use a mail interceptor that works w/o Mailtrap","user":{"login":"carpodaster","id":164400,"avatar_url":"https://avatars.githubusercontent.com/u/164400?v=3","gravatar_id":"","url":"https://api.github.com/users/carpodaster","html_url":"https://github.com/carpodaster","followers_url":"https://api.github.com/users/carpodaster/followers","following_url":"https://api.github.com/users/carpodaster/following{/other_user}","gists_url":"https://api.github.com/users/carpodaster/gists{/gist_id}","starred_url":"https://api.github.com/users/carpodaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carpodaster/subscriptions","organizations_url":"https://api.github.com/users/carpodaster/orgs","repos_url":"https://api.github.com/users/carpodaster/repos","events_url":"https://api.github.com/users/carpodaster/events{/privacy}","received_events_url":"https://api.github.com/users/carpodaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"carpodaster","id":164400,"avatar_url":"https://avatars.githubusercontent.com/u/164400?v=3","gravatar_id":"","url":"https://api.github.com/users/carpodaster","html_url":"https://github.com/carpodaster","followers_url":"https://api.github.com/users/carpodaster/followers","following_url":"https://api.github.com/users/carpodaster/following{/other_user}","gists_url":"https://api.github.com/users/carpodaster/gists{/gist_id}","starred_url":"https://api.github.com/users/carpodaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carpodaster/subscriptions","organizations_url":"https://api.github.com/users/carpodaster/orgs","repos_url":"https://api.github.com/users/carpodaster/repos","events_url":"https://api.github.com/users/carpodaster/events{/privacy}","received_events_url":"https://api.github.com/users/carpodaster/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-01-29T19:17:38Z","updated_at":"2015-03-13T18:27:44Z","closed_at":null,"body":"* Mailtrap must be set up in `.(zsh|bash)rc`, lets move it to something like dotenv\r\n* Fallback on a blackhole mail interceptor if Mailtrap is not configured"},"comment":{"url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/comments/79221819","html_url":"https://github.com/rails-girls-summer-of-code/rgsoc-teams/issues/124#issuecomment-79221819","issue_url":"https://api.github.com/repos/rails-girls-summer-of-code/rgsoc-teams/issues/124","id":79221819,"user":{"login":"carpodaster","id":164400,"avatar_url":"https://avatars.githubusercontent.com/u/164400?v=3","gravatar_id":"","url":"https://api.github.com/users/carpodaster","html_url":"https://github.com/carpodaster","followers_url":"https://api.github.com/users/carpodaster/followers","following_url":"https://api.github.com/users/carpodaster/following{/other_user}","gists_url":"https://api.github.com/users/carpodaster/gists{/gist_id}","starred_url":"https://api.github.com/users/carpodaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carpodaster/subscriptions","organizations_url":"https://api.github.com/users/carpodaster/orgs","repos_url":"https://api.github.com/users/carpodaster/repos","events_url":"https://api.github.com/users/carpodaster/events{/privacy}","received_events_url":"https://api.github.com/users/carpodaster/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T18:27:44Z","updated_at":"2015-03-13T18:27:44Z","body":"@marcgreenstock nah, I was just thinking about someting that would avoid emails being send in in the background. Something like this:\r\n\r\n```ruby\r\n# config/initializers/mail_interceptor.rb\r\nMail.register_interceptor(GitBasedMailInterceptor) if Rails.env.development?\r\n\r\n# lib/git_based_mail_interceptor.rb\r\nclass GitBasedMailInterceptor\r\n  def self.delivering_mail(message)\r\n    message.to = `git config user.email`\r\n    message.bcc = message.cc = nil\r\n  end\r\nend\r\n```\r\n(Disclaimer: not tested)"}}