Vote #73482
完了Mail handler: option to add created user to default group
0%
説明
This patch creates the option --default-group to the mail hander.
The purpose is to put created users that are handled by the script into a default group.
With the associated permissions on this group, and a "Default notification option" conducive to a response for a new account, the objectives of responding to a issues in a private project without exposing all issues to the user is achievable as requested in #6069 and #8497.
The patch in #10178 would also compliment this nicely.
Other management functions, like identifying how the user account was created (e.g. --default-group=Email) are also made easier.
journals
Feature added in r11522. The patch was slightly refactored and a test was added. The --default-group option also accepts a comma separated list of names to add new users to several groups. Thanks.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------
This doesn't seem to work when using redmine:email:receive_imap via Rake.
Specifying default_group=?? isn't passed through to the mail handler.
Can anyone help me understand how to use this with the rake task?
--------------------------------------------------------------------------------
+1 on this not working with the redmine:email:receive_imap rake
Is this only designed for the piped version? I have a group called "Clients", with this in my cron:
/usr/local/bin/rake -f /opt/apps/redmine/Rakefile redmine:email:receive_imap RAILS_ENV=production host=imap.gmail.com port=993 username=*** password=*** ssl=SSL folder=Redmine project=helpdesk tracker=Support category=Incoming unknown_user=create allow_override=project,assigned_to default_group=53
--------------------------------------------------------------------------------
Daniel Jones wrote:
> This doesn't seem to work when using redmine:email:receive_imap via Rake.
>
> Specifying default_group=?? isn't passed through to the mail handler.
>
> Can anyone help me understand how to use this with the rake task?
Right, lib/tasks/email.rake has not been patched, so it does not recognize new option.
--------------------------------------------------------------------------------
Jadranko Stjepanović wrote:
> Right, lib/tasks/email.rake has not been patched, so it does not recognize new option.
Daniel J., Arron: Jadranko is right. Both @--no-account-notice@ and @--default-group@ options weren't supported for email fetching using the rake task (pop and imap) in Redmine version#60.
This defect was reported via issue #13712, fixed in r11748 and released in Redmine version#71.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
duplicates,Closed,8643,Allow rdm-mailhandler with unknown-user=create to attach the user to a specific group instead of creating a "rightless" user
precedes,Closed,13712,Fix email rake tasks to also support no_account_notice and default_group options