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)


Added by Michelle Murrain at 2011-12-01 07:47 pm. Updated at 2011-12-01 08:06 pm.


Status:Closed Start date:2011-12-01
Priority:Normal Due date:
Assignee:Holger Just % Done:

0%

Category:Mail Receiving
Target version:2.6.0
Remote issue URL: Affected version:2.5.0

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;
Original-Recipient: rfc822;
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

Revision c9497f39
Added by Jean-Philippe Lang at 2011-04-17 12:16 am

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

Also available in: Atom PDF