プロジェクト

全般

プロフィール

Vote #72278

完了

Add --no-account-notice option for the mail handler script

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

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

0%

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

説明

Sometimes you want to set up a project which accepts email from new users (as in @--unknown-user=create@,) but you don't want Redmine to reply with account information for the newly created users (to avoid mailing back to spammers, etc.)

This patch adds a Redmine's mail handler script option just for that.


journals

+1 (please add this patch to the main release - we need this feature)
--------------------------------------------------------------------------------
I think this is duplicate: #10178

--------------------------------------------------------------------------------
Feature added in r11525, thanks.
--------------------------------------------------------------------------------
Merged.
--------------------------------------------------------------------------------
Howto expanded: [[RedmineReceivingEmails#Enabling-unknown-users-to-create-issues-by-email]]
--------------------------------------------------------------------------------
This feature doesn't seem to work in cron. Example:

*/30 * * * * cd /usr/share/redmine && rake redmine:email:receive_imap RAILS_ENV="production" port=993 ssl=true host=imap.gmail.com username={} password={} project=Support status=New priority=High tracker=Support unknown_user=create no_permission_check=1 no_account_notice=1

The above still sends account notification emails to new email addresses.
--------------------------------------------------------------------------------
Brandon Bertelsen wrote:
> This feature doesn't seem to work in cron. Example:
>
> */30 * * * * cd /usr/share/redmine && rake redmine:email:receive_imap RAILS_ENV="production" port=993 ssl=true host=imap.gmail.com username={} password={} project=Support status=New priority=High tracker=Support unknown_user=create no_permission_check=1 no_account_notice=1
>
> The above still sends account notification emails to new email addresses.

Hm, indeed. The fix is trivial (attached.)

Now that I think about it, why don't we extract the options thing from the 3 rake tasks, like so:

<pre>
task :setup_options => :environment do
@options = { :issue => {} }
%w(project status tracker category priority).each { |a| @options[:issue][a.to_sym] = ENV[a] if ENV[a] }
%w(allow_override unknown_user no_permission_check no_account_notice).each { |a| @options[a.to_sym] = ENV[a] if ENV[a] }
end

task :read => :setup_options do
MailHandler.receive(STDIN.read, @options)
end
</pre>

--------------------------------------------------------------------------------
Ugh, sorry: not enough coffee. Attaching the correct patch.
--------------------------------------------------------------------------------
Could you please post a new issue since this one has been closed for version:2.3.0?
--------------------------------------------------------------------------------

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

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

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


related_issues

relates,Closed,10178,Allow silent user account creation for issues submitted by email
relates,Closed,13714,no account notice setting works in mail handler script but not rake task
relates,Closed,8673,Disabling user creation emails.
duplicates,Closed,7919,Adding option to disable activation mail for users created via email unknown_user=create
duplicates,Closed,6068,Make a Silent Registration for new Mail Customers
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