I'm using Redmine , the opensourced Project Management system, as a support ticket system. The way it's working right now is: whenever someone needs help, she will send an email to helpme@mycompany.com. Then there is a ruby task (rake) runs every minute to pull emails from that address (via IMAP ) and create a ticket (issue) in the helpdesk project in my Redmine server. But the thing is the Redmine's rake task can not create issue with category (Department A, Department B,...) based on the issue's content. We can only specify the fixed category beforehand in the rake command: rake redmine:email:receive_imap RAILS_ENV="production" \\ host=imap.foo.bar username=redmine@somenet.foo password=xxx ssl=1 \\ project=foo \\ tracker=bug \\ allow_override=tracker,priority \\ category='Department A' So, I looked around and found that Redmine has REST API . It's even greater with python-redmine, a python library to help me ...