ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
Problems with rdm-mailhandler.rb (Bug #746)
Description
I'm actually assuming this is not a bug, but something I'm doing wrong, but I can't figure it out.
I'm trying to do incoming email, and I'm getting an error. We're using Postfix. I set rdm-mailhandler.rb to be executable, and made an alias like this in /etc/aliases:
issues: "|/var/www/chiliproject/extra/mail_handler/rdm-mailhandler.rb --url http://issues.dbdes.com --key <key>"
Following these instructions from the redmine wiki: http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails#Reading-emails-from-standard-input
I'm getting a mailer daemon error like this:
Final-Recipient: rfc822; issues@domain.com
Original-Recipient: rfc822;issues@domain.com
Action: failed
Status: 5.3.0
Diagnostic-Code: x-unix;
/var/www/chiliproject/extra/mail_handler/rdm-mailhandler.rb: 66: require:
not found /var/www/chiliproject/extra/mail_handler/rdm-mailhandler.rb: 67:
require: not found
/var/www/chiliproject/extra/mail_handler/rdm-mailhandler.rb: 68: require:
not found /var/www/chiliproject/extra/mail_handler/rdm-mailhandler.rb: 69:
require: not found
/var/www/chiliproject/extra/mail_handler/rdm-mailhandler.rb: 70: require:
not found /var/www/chiliproject/extra/mail_handler/rdm-mailhandler.rb: 72:
module: not found
/var/www/chiliproject/extra/mail_handler/rdm-mailhandler.rb: 73: cannot
open HTTP: No such file
/var/www/chiliproject/extra/mail_handler/rdm-mailhandler.rb: 73: class: not
found /var/www/chiliproject/extra/mail_handler/rdm-mailhandler.rb: 74:
Syntax error: "(" unexpected
Suggestions?
Associated revisions
Keep track of issue description changes (#746).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4954 e93f8b46-1217-0410-a6f0-8f06a7374b81
History
Updated by Holger Just at 2011-12-01 08:06 pm
This is because the rdm-mailhandler.rb
file has a bug in the currently released version. The shabang is not at the top as it should be. I just fixed that in 579061c.
You can either move the shebang to the top of the file yourself or change your alias entry into
issues: "|ruby /var/www/chiliproject/extra/mail_handler/rdm-mailhandler.rb --url http://issues.dbdes.com --key <key>"
Thanks for the report!
- Assignee set to Holger Just
- (deleted custom field) set to 2.5.0
- Status changed from Open to Closed