| Irina Lager |
| Creating tasks in the Redmine by Receiving emails from POP3 server |
| July 24, 2010 08:05:10 | |
|
Redmine allows users to create issues based on received e-mail (Receiving emails) messages. Yes, it is really great when the user's complaint automatically gets into the Redmine as an issue - bug, ticket or something else. However, as it often happens (especially with open source projects) the way to enable this feature is a little bit tricky. So here I'm going to share my experience of turning on this feature in Redmine. 1. Check whether these files exist in the location where the Redmine is installed: redmine\lib\redmine\pop3.rb and redmine\lib\tasks\email.rakeAt first, check whether these files exist in the location where the Redmine is installed: redmine\lib\redmine\pop3.rb and redmine\lib\tasks\email.rake Generally speaking, two files (redmine\lib\redmine\pop3.rb and redmine\lib\tasks\email.rake) are responsible for receiving emails from Check pop3.rb in the folder redminelib of Redmine. If there is no such file, you should download it from the repository: After that, open email.rake file in the redminelib/asks folder. Try to fine in this file references to POP3. If there is none of them (and Restart Redmine. If you are using Bitnami Redmine stack, there are special commands in the Start menu for starting/stopping Redmine. 2. Create Redmine User for issues creationThis user should have the same e-mail address, from which the letters to Redmine will be sending. For instance, somebody sends 3. Enable mail receiving APILog into the Redmine as an administrator, go to Application settings -> Incoming emails, check Enable WS for incoming emails and ![]() Fig. 1. – Enable mail receiving API 4. Create a script or BAT file for receiving e-mails into RedmineTake a look at the example of the script below. It is assuming that POP3 parameters are: REM Setting path SET Redmine_Path = c:Program filesBitNami Redmine Srackpps edmine REM Setting email SET Host = pop3. myhost.com SET Username = IncomeRedmineEmail SET Password = IncomeRedmineEmailPassword SET Project = ProjectName SET Tracker = Feedback REM Getting emails from server Rake –f “%REDMINE_PATH%rakefile” redmine:email:receive_pop3 RAILS_ENV=”producrion” host=%Host% username=%Username% password=%Password% project=%Project% tracker=%Tracker% For detailed information about rake task format (redmine:email:receive_pop3) please see Receiving emails. 5. Create a schedule for running script for receiving e-mail.The simplest way to do this is use the Windows is Task SchedulerAfter those five steps, e-mail messages from
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
address (you should remember, this is an address of our
|








