email_setting.patch

Lucas Panjer, 2010-12-02 08:19

Download (1.89 KB)

View differences:

app/models/mail_handler.rb
190 190
    issue.assigned_to = assigned_to if assigned_to
191 191
    
192 192
    issue.save!
193
    add_watchers(issue) if Setting.mail_handler_add_watchers_on_receive_issue_reply
193 194
    logger.info "MailHandler: issue ##{issue.id} updated by #{user}" if logger && logger.info
194 195
    journal
195 196
  end
app/views/settings/_mail_handler.rhtml
18 18
</p>
19 19
</div>
20 20

  
21
<div class="box tabular settings">
22
	<p><%= setting_check_box :mail_handler_add_watchers_on_receive_issue_reply %></p>
23
</div>
21 24
<%= submit_tag l(:button_save) %>
22 25

  
23 26
<% end %>
config/locales/en.yml
334 334
  setting_mail_handler_body_delimiters: "Truncate emails after one of these lines"
335 335
  setting_mail_handler_api_enabled: Enable WS for incoming emails
336 336
  setting_mail_handler_api_key: API key
337
  setting_mail_handler_add_watchers_on_receive_issue_reply: "Add watchers from to: and cc: in replies"
337 338
  setting_sequential_project_identifiers: Generate sequential project identifiers
338 339
  setting_gravatar_enabled: Use Gravatar user icons
339 340
  setting_gravatar_default: Default Gravatar image
config/settings.yml
124 124
  default: 0
125 125
mail_handler_api_key:
126 126
  default: 
127
mail_handler_add_watchers_on_receive_issue_reply:
128
  default: false
127 129
issue_list_default_columns:
128 130
  serialized: true
129 131
  default: