Today i struggled around getting Redmine pulling Mails from a remote IMAP server and creating issues with its content. Finally i’v get it working… There are several rules you should keep in mind:
- Be carful if you have defined any mandatory additional fields for your Issues
- If you set unknown_user=create be sure the newly created user has access to the project automatically. If he has no access, the issue will not be created
- If you just want to pipe Mails into a Redmine project use unknown_user=accept and o_permission_check=1 and issues are getting created with the anonymous User. Works well for a simple “one-way” posting
Finally i’ve created a small bash script to run the import process all 5 minutes:
SERVER=host.domain.tld USER=jbauer PASS=ILike24 rake -f /path/to/your/Redmine/installation/Rakefile redmine:email:receive_imap RAILS_ENV="production" \ host="$SERVER" \ username="$USER" \ password="$PASS" \ move_on_success=read \ project=sandbox \ allow_override=project,tracker,category,priority,status \ unknown_user=accept \ no_permission_check=1 \ status=New \ tracker=Bug \ priority=Low exit $? |
For mor detailed information visit the Redmine Wiki.
Tagged: Automation, Bash, Redmine, sourceTube, Technisches, zero-one



