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