プロジェクト

全般

プロフィール

Vote #65420

未完了

The IMAP method for anonymous issue creation doesn't work from revision Revision 2789

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
Reopend
優先度:
通常
担当者:
-
カテゴリ:
Email receiving_29
対象バージョン:
-
開始日:
2009/06/28
期日:
進捗率:

0%

予定工数:
category_id:
29
version_id:
0
issue_org_id:
3554
author_id:
6156
assigned_to_id:
0
comments:
11
status_id:
8
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Reopend]

説明

The Anonymous user email mapping from Revision 2789 doesn't work. I'm trying to use the IMAP method to create an issue from email.

Here is the command I'm using:
rake redmine:email:receive_imap RAILS_ENV="production" host=mail.mydomain.com username=support@mydomain.com password=mypassword project=support unknown_user=accept

Note: After I run the command the test email in the INBOX is marked as "seen" (so I know its connecting and reading the mailbox properly) but no issue is created. I've double checked the permissions and the anonymous user has "add issues" permission. There are no errors in the error log.

Here is my environment:
About your application's environment
Ruby version 1.8.5 (i386-linux)
RubyGems version 1.3.1
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/www/vhosts/mydomain.com/httpdocs/redmine
Environment production
Database adapter mysql
Database schema version 20090614091200


journals

It looks like custom fields can not be required and the project needs to be "public" or anonymous email creation will fail.
--------------------------------------------------------------------------------
Indeed. These rules also apply to ticket creation via email.
--------------------------------------------------------------------------------
Hello,
I updated Redmine to latest stable version (0.8.7) but Redmine still not accepts emails from unknown users.
Project for sure is "public" and there are no custom fields assigned to the "support_1" project (and at all custom fields are no required in Redmine).

The command is as follows:
rake -f /apps/redmine-0.8.7/Rakefile redmine:email:receive_imap unknown_user=accept RAILS_ENV="production" host=mail.myhost.com port=143 folder=Inbox project=support_1 username=mymailusername password=mymailpassword

In mailbox I see the mails are marked as read after script execution.

What I'm doing wrong? How can I debug that?

My environment (don't know how to get rails version):
Redmine 0.8.7 stable (mySQL)
ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
gem 1.3.5

Thank you very much for help.
--------------------------------------------------------------------------------
Just to be sure, updated rails to version 2.3.4

Thank you.
--------------------------------------------------------------------------------
Jaroslav, this feature is not available in the 0.8 stable branch.
It's currently in trunk and will be part of 0.9.
--------------------------------------------------------------------------------
Does it already work that users, whom are authenticated but non-member off any project, can create issues via mail in 0.9.2 to a non-public project?

My enviroment:
Redmine 0.9.2 stable (MySQL)
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
gem 1.3.5
Rails 2.3.5

I recieve mails via imap and recently updated redmine from 0.8.6 to 0.9.2

before:
rake -f /root/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" project=frei tracker=Allgemein priority=urgent status=new allow_override=project,tracker,category,priority host=ipaddress username=mailuser password=mailpw

that works when i changed models/user.rb to:

def allowed_to?(action, project, options={})

role.allowed_to?(action) ### && (project.is_public? || role.member?) ###

end

after:
rake -f /root/redmine/Rakefile redmine:email:receive_imap unknown_user=accept RAILS_ENV="production" project=frei tracker=Allgemein priority=urgent status=new allow_override=project,tracker,category,priority host=ipaddress username=mailuser password=mailpw

and it still won't work... :(

Thank you for help.
--------------------------------------------------------------------------------
Problem seems to be solved.

Changed the following thing:

<pre>
def allowed_to?(action, project, options={})

roles.detect { |role| (project.is_public? || role.member?) && role.allowed_to?(action) }

end
</pre>
in
<pre>
def allowed_to?(action, project, options={})

roles.detect { |role| (project.is_public? || role.member?) || role.allowed_to?(action) }

end
</pre>

Thanks!
--------------------------------------------------------------------------------
Hi, I'm using v 0.9.3 and I cant make this to work. Its probably because the project isn't public...

I'm using no_permission_check=1 unknown_user=accept parameters. Emails are correctly red, but the issue isn't created.

If I send email with existing user, issue is created.

Regards,
Ivan
--------------------------------------------------------------------------------
Oh, my projects ARE public, but I have authentication required in Administration -> Settings -> Authentication tab.

Regards
--------------------------------------------------------------------------------
OK, removing authentication required lets my emails from anonymous trough.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,New,2230,Issue creation via email from anyone without a Redmine account using an Inbox project

Admin Redmine さんが約2年前に更新

  • カテゴリEmail receiving_29 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0