Setting up Redmine to create issues from emails, the way I did it, mostly involved getting a cron job running to rake redmine:email:receive_imap. The basic steps are:
- Create a GMail Account
- Add a script to run at intervals (I am running it every 30 – */30 * * * *
I created shell script in it’s own file that reads like this:
#!/bin/bash
/home/xxxx/.gems/bin/rake -f ~/xxxx/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=imap.gmail.com ssl=SSL port=993 username=xxxx@gmail.com password=xxxx project=xxx tracker=bug priority=Immediate allow_override=project,tracker,priority --trace
One thing that hung me up was that for ruby gems to be in the path in the cron execution context, you’re crontab needs to look like this:
*/30 * * * * . /etc/profile && /path/to/script.sh
Without the “. /etc profile” part, your script won’t know what the hell a “rake” is.
I can’t get the “assigned_to” default to work, but I’m happy with it running properly for the time being.