Project

General

Profile

Actions

Defect #20437

closed

Unable to read email from stdin. Invalid option: --unknown-user

Added by Pavel Potcheptsov over 9 years ago. Updated over 9 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Environment:
  Redmine version                2.6.5.stable.14266
  Ruby version                   1.9.3-p327 (2012-11-10) [i686-linux]
  Rails version                  3.2.21
  Environment                    production
  Database adapter               Mysql2
# cat /root/raw_email 
bla-bla

Project: it

# rake redmine:email:read RAILS_ENV="production" --unknown-user accept --no-permission-check priority=normal status=new tracker=task allow_override=project < /root/raw_email
invalid option: --unknown-user
# rake redmine:email:read RAILS_ENV="production" --unknown-user=accept --no-permission-check priority=normal status=new tracker=task allow_override=project < /root/raw_email
invalid option: --unknown-user=accept

Authentication required is not selected.
Anonymous has Add issues permission and added to project with identifier it.

Files

rm_anon_issue.png (33.9 KB) rm_anon_issue.png Pavel Potcheptsov, 2015-07-30 08:44
Actions #1

Updated by Pavel Potcheptsov over 9 years ago

# rake -f ./Rakefile redmine:email:read RAILS_ENV="production" unknown-user=accept no-permission-check=1 priority=normal status=new tracker=task allow_override=project < /root/raw_email
rake aborted!
Don't know how to build task 'unknown-user=accept'
/usr/local/rvm/gems/ruby-1.9.3-p327/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-1.9.3-p327/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)

# tail production.log
MailHandler: ignoring email from unknown user []
Actions #2

Updated by Go MAEDA over 9 years ago

  • Status changed from New to Needs feedback
  • Priority changed from High to Normal

Please use "unknown_user" and "no_permission_check" instead of "unknown-user" and "no-permission-check".
"-" shoud be corrected to "_".

bundle exec rake redmine:email:read RAILS_ENV="production" unknown_user=accept no_permission_check=1 priority=normal status=new tracker=task allow_override=project < /root/raw_email
Actions #3

Updated by Pavel Potcheptsov over 9 years ago

Thanks, it works.
But is there a way to specify Issue's body, subject and author while using redmine:email:read rake task?

Actions #4

Updated by Toshi MARUYAMA over 9 years ago

  • Status changed from Needs feedback to Closed
  • Resolution set to Invalid

Please use forum for questions.

Actions

Also available in: Atom PDF