Defect #31503 » fix-31503-3_4.diff
| app/models/mail_handler.rb (作業コピー) | ||
|---|---|---|
| 286 | 286 |
reply |
| 287 | 287 |
else |
| 288 | 288 |
if logger |
| 289 |
logger.info "MailHandler: ignoring reply from [#{sender_email}] to a locked topic"
|
|
| 289 |
logger.info "MailHandler: ignoring reply from [#{email.from.first}] to a locked topic"
|
|
| 290 | 290 |
end |
| 291 | 291 |
end |
| 292 | 292 |
end |
| test/unit/mail_handler_test.rb (作業コピー) | ||
|---|---|---|
| 955 | 955 |
assert_equal Message.find(1), m.parent |
| 956 | 956 |
end |
| 957 | 957 | |
| 958 |
def test_reply_to_a_locked_message |
|
| 959 |
# Lock the topic |
|
| 960 |
Message.find(2).parent.update_attribute :locked, true |
|
| 961 | ||
| 962 |
assert_no_difference('Message.find(1).replies_count') do
|
|
| 963 |
m = submit_email('message_reply_by_subject.eml')
|
|
| 964 |
end |
|
| 965 |
end |
|
| 966 | ||
| 958 | 967 |
def test_should_convert_tags_of_html_only_emails |
| 959 | 968 |
with_settings :text_formatting => 'textile' do |
| 960 | 969 |
issue = submit_email('ticket_html_only.eml', :issue => {:project => 'ecookbook'})
|
- « Previous
- 1
- 2
- Next »