Feature #19903 » 19903-v2.patch
| app/views/settings/_mail_handler.html.erb | ||
|---|---|---|
|
<em class="info"><%= l(:text_line_separated) %></em>
|
||
|
</p>
|
||
|
<p>
|
||
|
<%= setting_text_field :mail_handler_excluded_filenames, :size => 60 %>
|
||
|
<%= setting_text_area :mail_handler_excluded_filenames %>
|
||
|
<label class="block">
|
||
|
<%= setting_check_box :mail_handler_enable_regex_excluded_filenames, :label => false %>
|
||
|
<%= l(:setting_mail_handler_enable_regex) %>
|
||
| test/unit/mail_handler_test.rb | ||
|---|---|---|
|
end
|
||
|
def test_attachments_that_match_mail_handler_excluded_filenames_should_be_ignored
|
||
|
with_settings :mail_handler_excluded_filenames => '*.vcf, *.jpg' do
|
||
|
with_settings :mail_handler_excluded_filenames => "*.vcf,\n *.jpg" do
|
||
|
issue = submit_email('ticket_with_attachment.eml', :issue => {:project => 'onlinestore'})
|
||
|
assert issue.is_a?(Issue)
|
||
|
assert !issue.new_record?
|
||
- « Previous
- 1
- 2
- 3
- Next »