Project

General

Profile

Actions

Feature #11498

closed

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

Added by Alex Shulgin over 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Email receiving
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

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.


Files


Related issues

Related to Redmine - Patch #10178: Allow silent user account creation for issues submitted by emailClosed

Actions
Related to Redmine - Defect #13714: no account notice setting works in mail handler script but not rake taskClosed

Actions
Related to Redmine - Feature #8673: Disabling user creation emails.Closed2011-06-23

Actions
Has duplicate Redmine - Feature #7919: Adding option to disable activation mail for users created via email unknown_user=createClosed2011-03-18

Actions
Has duplicate Redmine - Feature #6068: Make a Silent Registration for new Mail CustomersClosed2010-08-06

Actions
Precedes Redmine - Defect #13712: Fix email rake tasks to also support no_account_notice and default_group optionsClosed

Actions
Actions #1

Updated by Gregory Engels about 11 years ago

+1 (please add this patch to the main release - we need this feature)

Actions #2

Updated by Arnis Juraga about 11 years ago

I think this is duplicate: #10178

Actions #3

Updated by Jean-Philippe Lang about 11 years ago

  • Tracker changed from Patch to Feature
  • Subject changed from Added --no-account-notice option for the mail handler script to Add --no-account-notice option for the mail handler script
  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Target version set to 2.3.0
  • Resolution set to Fixed

Feature added in r11525, thanks.

Actions #4

Updated by Jean-Philippe Lang about 11 years ago

  • Status changed from Resolved to Closed

Merged.

Actions #5

Updated by Terence Mill about 11 years ago

Howto expanded: RedmineReceivingEmails

Actions #6

Updated by Brandon Bertelsen almost 11 years ago

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.

Actions #7

Updated by Alex Shulgin almost 11 years ago

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:

    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
Actions #9

Updated by Etienne Massip almost 11 years ago

Could you please post a new issue since this one has been closed for 2.3.0?

Actions #10

Updated by Go MAEDA over 9 years ago

  • Related to Feature #8673: Disabling user creation emails. added
Actions #11

Updated by Mischa The Evil about 6 years ago

  • Has duplicate Feature #7919: Adding option to disable activation mail for users created via email unknown_user=create added
Actions #12

Updated by Go MAEDA about 5 years ago

  • Has duplicate Feature #6068: Make a Silent Registration for new Mail Customers added
Actions

Also available in: Atom PDF