Help with anonymous issue creation from revision 2789
I checked out the trunk and still can't get this to work:
rake redmine:email:receive_imap RAILS_ENV="production" host=my.mailserver.com firstname.lastname@example.org password=XXX project=support allow_override=tracker,priority unknown_user=accept
The anon user has permission to create an issue .. and when I submit an email to support I can see the email in there. After the rake command is run the email status is marked to "seen" but no issue is created. Anyone have the new "Ability to accept incoming emails from unknown users" working ?
I'm having a bit of trouble with this too.
I'm using the
unknown_user=create option. The new user gets created fine, but the issue is not created against the specified project and tracker (I'm setting the project and tracker on the
rake command-line, not allowing overrides)
Some things I've tried:
- Toggled the target project between public/private - no effect.
- Added the Add Ticket right to the Non-Member role - no effect.
- Updated to the very latest svn trunk version - no effect, but nice to have!
If I manually add the newly-created user to the project's members, their emails do indeed correctly add tickets - so it's got to be a permissions problem somewhere, even though my settings seem correct.
About your application's environment Ruby version 1.8.6 (i486-linux) RubyGems version 1.3.3 Rails version 2.2.2 Active Record version 2.2.2 Action Pack version 2.2.2 Active Resource version 2.2.2 Action Mailer version 2.2.2 Active Support version 2.2.2 Application root /var/redmine-latest Environment development Database adapter mysql Database schema version 20090614091200 About your Redmine plugins Redmine Todo Lists plugin 0.0.3.4 Rate Plugin 0.1.0 Customer plugin 0.2.0 Redmine Repo Pygments plugin 0.0.2 ezFAQ plugin 0.3.5 Stuff To Do Plugin 0.3.0 Redmine Graphs plugin 0.1.0 Redmine ezLibrarian plugin 0.1.1 Redmine Exception Handler plugin 0.2.0 Embedded 0.0.1 Redmine System Notification plugin 0.2.0 Google Calendar Plugin 0.1.0 Charts Plugin 0.0.12 Timesheet Plugin 0.5.0 Budget 0.2.0 Redmine My Widgets plugin 0.1.0
Any help or advice would be greatly appreciated!
(quick addendum, just in case it has any affect -- although script/about shows my env as 'development', I'm actually running in 'production' - i.e., that's specified on my mongrel startup command line)
Out of curiosity, I've been trying to get some debug output from the rake task -- trying to see what's going on.
However, I get no output from the rake task in log/production.log at all. How do I get debugging output from rake tasks - i.e. all those
logger.info calls in the code?
RE: Help with anonymous issue creation from revision 2789 - Added by Michael Burke over 11 years ago
Maybe try messing with these values in config/environments/production.rb:
@# Disable delivery errors if you bad email addresses should just be ignored
config.action_mailer.raise_delivery_errors = false
- No email in production log
config.action_mailer.logger = nil
I've since narrowed the problem down to the fact that adding the Create Issue role for the Non-Member user doesn't seem to be working. The user's account is being created correctly, but the issue isn't being created. If I manually add the newly-created user into the Members of the target project, their emails then correctly create issues.
So it's not really a mailr problem -- rather, it's being rejected despite Non-Member apparently being allowed to create issues. I've logged this as Defect #3763