プロジェクト

全般

プロフィール

Vote #73482

完了

Mail handler: option to add created user to default group

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
29
version_id:
60
issue_org_id:
13340
author_id:
60714
assigned_to_id:
1
comments:
7
status_id:
5
tracker_id:
2
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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

Admin Redmine さんが3年以上前に更新

  • カテゴリEmail receiving_29 にセット
  • 対象バージョン2.3.0_60 にセット

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

いいね!0
いいね!0