OSDN Git Service

Ability to accept incoming emails from unknown users (#2230, #3003).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 14 Jun 2009 14:48:34 +0000 (14:48 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 14 Jun 2009 14:48:34 +0000 (14:48 +0000)
commitb3afde14fa6046a022eda73edee85ab48171909f
tree89dc8da3ab3f51ab9ed88fcc04e216822410aebe
parentc48193f8c113650c14d98b2f96279d57118df973
Ability to accept incoming emails from unknown users (#2230, #3003).

An option lets you specify how to handle emails from unknown users:
* ignore: the email is ignored (previous and default behaviour)
* accept: the sender is considered as an anonymous user
* create: a user account is created (username/password are sent back to the user)

Permissions have to be consistent with the chosen option. Eg. if you choose 'create', the 'Non member' role must have the 'Add issues' permission so that an issue can be created by an unknown user via email. If you choose 'accept', the 'Anonymous' role must have this permission.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2789 e93f8b46-1217-0410-a6f0-8f06a7374b81
app/models/mail_handler.rb
extra/mail_handler/rdm-mailhandler.rb
lib/tasks/email.rake
test/fixtures/mail_handler/ticket_by_unknown_user.eml [new file with mode: 0644]
test/unit/mail_handler_test.rb