Project

General

Profile

Actions

Defect #41585

closed

email receive does not work on 5.1

Added by Jack Dai 29 days ago. Updated 28 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

I try to run below command in extra/mail_handler folder, however it does not work. Reply is "Some arguments are missing. Use `rdm-mailhandler.rb --help` for getting help.". May I know where is problem?

_rake -f rdm-mailhandler.rb redmine:email:receive_imap RAILS_ENV="production" host=imap.qiye.aliyun.com username=XXXXXX password=XXXXXX ssl=1 project=support

Some arguments are missing. Use `rdm-mailhandler.rb --help` for getting help._

Actions #1

Updated by Holger Just 28 days ago

  • Status changed from New to Closed
  • Resolution set to Invalid

To quote the output of ruby rdm-mailhandler.rb --help:

Usage: rdm-mailhandler.rb [options] --url=<Redmine URL> --key=<API key>

Reads an email from standard input and forwards it to a Redmine server through a HTTP request.

Required arguments:
-u, --url URL               URL of the Redmine server
-k, --key KEY               Redmine API key

[...]

You need to provide at least these arguments.

In any case, please note that rdm-mailhandler.rb is NOT used to fetch mails from an IMAP server but instead is a script which can be used by an MTA (such as postfix) to directly deliver an incoming mail to Redmine. To fetch mails from an IMAP server, you can use the redmine:email:receive_imap rake task. See RedmineReceivingEmails for details on how to use this rake task.

Actions

Also available in: Atom PDF