{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/scrumbugz/issues/135","labels_url":"https://api.github.com/repos/mozilla/scrumbugz/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/scrumbugz/issues/135/comments","events_url":"https://api.github.com/repos/mozilla/scrumbugz/issues/135/events","html_url":"https://github.com/mozilla/scrumbugz/issues/135","id":64058219,"number":135,"title":"How?","user":{"login":"koullislp","id":1449774,"avatar_url":"https://avatars.githubusercontent.com/u/1449774?v=3","gravatar_id":"","url":"https://api.github.com/users/koullislp","html_url":"https://github.com/koullislp","followers_url":"https://api.github.com/users/koullislp/followers","following_url":"https://api.github.com/users/koullislp/following{/other_user}","gists_url":"https://api.github.com/users/koullislp/gists{/gist_id}","starred_url":"https://api.github.com/users/koullislp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koullislp/subscriptions","organizations_url":"https://api.github.com/users/koullislp/orgs","repos_url":"https://api.github.com/users/koullislp/repos","events_url":"https://api.github.com/users/koullislp/events{/privacy}","received_events_url":"https://api.github.com/users/koullislp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-24T17:48:40Z","updated_at":"2015-03-25T14:03:21Z","closed_at":null,"body":"Hello,\r\n\r\nI am struggling to integrate scrumbugz with my bugzilla server which runs on the same host. At this point I am able to start the server (no errors) and I can create users/groups/teams/sprints etc. But apparently searching for a bug doesn't do much (broken link). \r\n\r\nI believe it is a matter of just including the correct parameters in the config files under the settings directory. Due to the lack of documentation and my python inexperience I don't know what to modify.\r\n\r\nSome help would be very appreciated.\r\n\r\nThanks,\r\n\r\nK"},"comment":{"url":"https://api.github.com/repos/mozilla/scrumbugz/issues/comments/86042240","html_url":"https://github.com/mozilla/scrumbugz/issues/135#issuecomment-86042240","issue_url":"https://api.github.com/repos/mozilla/scrumbugz/issues/135","id":86042240,"user":{"login":"pmclanahan","id":19934,"avatar_url":"https://avatars.githubusercontent.com/u/19934?v=3","gravatar_id":"","url":"https://api.github.com/users/pmclanahan","html_url":"https://github.com/pmclanahan","followers_url":"https://api.github.com/users/pmclanahan/followers","following_url":"https://api.github.com/users/pmclanahan/following{/other_user}","gists_url":"https://api.github.com/users/pmclanahan/gists{/gist_id}","starred_url":"https://api.github.com/users/pmclanahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmclanahan/subscriptions","organizations_url":"https://api.github.com/users/pmclanahan/orgs","repos_url":"https://api.github.com/users/pmclanahan/repos","events_url":"https://api.github.com/users/pmclanahan/events{/privacy}","received_events_url":"https://api.github.com/users/pmclanahan/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T14:03:21Z","updated_at":"2015-03-25T14:03:21Z","body":"Hi,\r\n\r\nThe way I did it for scrumbu.gs was to setup a \"global follower\" in bugzilla, which is an account that gets all non-private bugmail. I used an email account at my domain for this and pointed the MX DNS record at the web server's IP. I then setup Postfix (a linux email server) to send all recieved mail to a script that sent the mail as a POST request to the running Scrumbugz instance. There is a [view in scrumbugz](https://github.com/mozilla/scrumbugz/blob/master/bugmail/views.py#L23-L44) that's setup to handle these posts. \r\n\r\nSetting up postfix was pretty easy. I basically kept defaults and setup an alias in `/etc/aliases` for the address:\r\n\r\n```\r\nscrumbugz: \"|/home/pmclanahan/www/scrumbugz/process_bugmail.sh\"\r\n```\r\n\r\nThat `process_bugmail.sh` script is also pretty simple. You basically set an API Key in your settings for the app, then put the same key in the following script and that's what's working for me.\r\n\r\n```bash\r\n#!/bin/bash\r\n\r\nAPI_KEY=\"super-sekrit\"\r\n\r\ncurl -v -d api-key=\"${API_KEY}\" --data-urlencode email=\"$(cat -)\" https://scrumbu.gs/bugmail/process/\r\n```\r\n\r\nI've been meaning for over a year to blog about this or just document it and have failed. Sorry about that. I tried earlier having the bugmail go to an account that supported POP mail and use that as a queue, but that ended up not being as reliable.\r\n\r\nHope this helps!"}}